diff options
author | ZviRackover <zvirack@gmail.com> | 2018-08-29 21:55:35 +0300 |
---|---|---|
committer | ZviRackover <zvirack@gmail.com> | 2018-08-31 22:47:49 +0300 |
commit | 1015aa6ff36b6f936f4707119d57cf561df28feb (patch) | |
tree | 841b4372ea8a97a335dc486561772ed35396d3d1 /src/nvim/ex_getln.c | |
parent | 1c03a064870af18f50d4f11cf4c7532c5cfae495 (diff) | |
download | rneovim-1015aa6ff36b6f936f4707119d57cf561df28feb.tar.gz rneovim-1015aa6ff36b6f936f4707119d57cf561df28feb.tar.bz2 rneovim-1015aa6ff36b6f936f4707119d57cf561df28feb.zip |
Remove has_mbytes from lines local to parent commit
Diffstat (limited to 'src/nvim/ex_getln.c')
-rw-r--r-- | src/nvim/ex_getln.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/ex_getln.c b/src/nvim/ex_getln.c index 380c6c60d1..cfa8f3879f 100644 --- a/src/nvim/ex_getln.c +++ b/src/nvim/ex_getln.c @@ -2152,7 +2152,7 @@ static void set_cmdspos_cursor(void) */ static void correct_cmdspos(int idx, int cells) { - if ((*mb_ptr2len)(ccline.cmdbuff + idx) > 1 + if (utfc_ptr2len(ccline.cmdbuff + idx) > 1 && utf_ptr2cells(ccline.cmdbuff + idx) > 1 && ccline.cmdspos % Columns + cells > Columns) ccline.cmdspos++; |