aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/screen.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nvim/screen.c')
-rw-r--r--src/nvim/screen.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/nvim/screen.c b/src/nvim/screen.c
index 1967ef4773..63d8f5d506 100644
--- a/src/nvim/screen.c
+++ b/src/nvim/screen.c
@@ -6954,10 +6954,7 @@ static void win_redr_ruler(win_T *wp, int always)
if (this_ru_col + o < width) {
// Need at least 3 chars left for get_rel_pos() + NUL.
while (this_ru_col + o < width && RULER_BUF_LEN > i + 4) {
- if (has_mbyte)
- i += utf_char2bytes(fillchar, buffer + i);
- else
- buffer[i++] = fillchar;
+ i += utf_char2bytes(fillchar, buffer + i);
++o;
}
get_rel_pos(wp, buffer + i, RULER_BUF_LEN - i);