diff options
author | Kevin Ballard <kevin@sb.org> | 2014-09-25 18:04:11 -0700 |
---|---|---|
committer | Kevin Ballard <kevin@sb.org> | 2014-09-25 18:04:11 -0700 |
commit | cd4fa518b86ddfb3e946fa4dd69e9e32a58ef81e (patch) | |
tree | 8d0a45f9101c833c6f5442557534714bea381b46 /output.cpp | |
parent | 316d7004a3d4f6905f36301b6d5c9ebd934f11fa (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.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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)) { |