diff options
author | ZviRackover <zvirack@gmail.com> | 2018-09-02 01:36:18 +0300 |
---|---|---|
committer | ZviRackover <zvirack@gmail.com> | 2018-09-09 10:45:50 +0300 |
commit | ac13e65ae0ce98516e816ba4fcf468d19e750c30 (patch) | |
tree | e039a2201ece3358068a659b4bb84b204afd866b /src/nvim/screen.c | |
parent | cbdbc4f63d68a6b17b9eea5c67130e37d3d0f278 (diff) | |
download | rneovim-ac13e65ae0ce98516e816ba4fcf468d19e750c30.tar.gz rneovim-ac13e65ae0ce98516e816ba4fcf468d19e750c30.tar.bz2 rneovim-ac13e65ae0ce98516e816ba4fcf468d19e750c30.zip |
Remove has_mbytes local to lines changed in parent commit
Diffstat (limited to 'src/nvim/screen.c')
-rw-r--r-- | src/nvim/screen.c | 5 |
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); |