Remove has_mbytes local to lines changed in parent commit

This commit is contained in:
ZviRackover
2018-09-02 01:36:18 +03:00
parent cbdbc4f63d
commit ac13e65ae0
11 changed files with 51 additions and 128 deletions

View File

@@ -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);