aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/pager.cpp
diff options
context:
space:
mode:
authorGravatar Kurtis Rader <krader@skepticism.us>2016-06-14 17:16:18 -0700
committerGravatar Kurtis Rader <krader@skepticism.us>2016-06-14 17:17:31 -0700
commitd70be18c4255829b3b6bc3d71b791740a9bba6ac (patch)
treea4d2ef5bc7a3753654ae68a42508dcf2a8a09617 /src/pager.cpp
parent1be3fe66330ed8a603413ed3ee61fdb65f029851 (diff)
use fish_wcwidth rather than wcwidth
Minor cleanup related to issue #2199.
Diffstat (limited to 'src/pager.cpp')
-rw-r--r--src/pager.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/pager.cpp b/src/pager.cpp
index d9411362..1603ce8e 100644
--- a/src/pager.cpp
+++ b/src/pager.cpp
@@ -67,15 +67,15 @@ static int print_max(const wcstring &str, highlight_spec_t color, int max, bool
for (size_t i = 0; i < str.size(); i++) {
wchar_t c = str.at(i);
- if (written + wcwidth(c) > max) break;
- if ((written + wcwidth(c) == max) && (has_more || i + 1 < str.size())) {
+ if (written + fish_wcwidth(c) > max) break;
+ if ((written + fish_wcwidth(c) == max) && (has_more || i + 1 < str.size())) {
line->append(ellipsis_char, color);
- written += wcwidth(ellipsis_char);
+ written += fish_wcwidth(ellipsis_char);
break;
}
line->append(c, color);
- written += wcwidth(c);
+ written += fish_wcwidth(c);
}
return written;
}