aboutsummaryrefslogtreecommitdiffhomepage
path: root/output.cpp
diff options
context:
space:
mode:
authorGravatar Kevin Ballard <kevin@sb.org>2014-09-25 18:04:11 -0700
committerGravatar Kevin Ballard <kevin@sb.org>2014-09-25 18:04:11 -0700
commitcd4fa518b86ddfb3e946fa4dd69e9e32a58ef81e (patch)
tree8d0a45f9101c833c6f5442557534714bea381b46 /output.cpp
parent316d7004a3d4f6905f36301b6d5c9ebd934f11fa (diff)
Remove my_wcswidth() in favor of fish_wcswidth()
my_wcswidth() was just a wrapper around fish_wcswidth() already. Instead, add two convenience overrides of fish_wcswidth() to common.h that make it a drop-in replacement for my_wcswidth().
Diffstat (limited to 'output.cpp')
-rw-r--r--output.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/output.cpp b/output.cpp
index 312a9077..2c9f7d48 100644
--- a/output.cpp
+++ b/output.cpp
@@ -535,7 +535,7 @@ void writestr_ellipsis(const wchar_t *str, int max_width)
CHECK(str,);
- tot = my_wcswidth(str);
+ tot = fish_wcswidth(str);
if (tot <= max_width)
{
@@ -575,7 +575,7 @@ int write_escaped_str(const wchar_t *str, int max_len)
CHECK(str, 0);
out = escape(str, 1);
- len = my_wcswidth(out);
+ len = fish_wcswidth(out);
if (max_len && (max_len < len))
{