From 1c03a064870af18f50d4f11cf4c7532c5cfae495 Mon Sep 17 00:00:00 2001 From: ZviRackover Date: Wed, 29 Aug 2018 21:15:32 +0300 Subject: Refactor: remove mb_ptr2len_len, mb_ptr2cells and mb_ptr2cells_len Remove occurences of these macros. --- src/nvim/ex_cmds.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/nvim/ex_cmds.c') diff --git a/src/nvim/ex_cmds.c b/src/nvim/ex_cmds.c index c9eccfa6b0..2da6721011 100644 --- a/src/nvim/ex_cmds.c +++ b/src/nvim/ex_cmds.c @@ -5653,7 +5653,7 @@ void ex_sign(exarg_T *eap) if (!vim_isprintc(utf_ptr2char(s))) { break; } - cells += (*mb_ptr2cells)(s); + cells += utf_ptr2cells(s); } // Currently must be one or two display cells if (s != p || cells < 1 || cells > 2) { -- cgit From 1015aa6ff36b6f936f4707119d57cf561df28feb Mon Sep 17 00:00:00 2001 From: ZviRackover Date: Wed, 29 Aug 2018 21:55:35 +0300 Subject: Remove has_mbytes from lines local to parent commit --- src/nvim/ex_cmds.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/nvim/ex_cmds.c') diff --git a/src/nvim/ex_cmds.c b/src/nvim/ex_cmds.c index 2da6721011..ca975ee02a 100644 --- a/src/nvim/ex_cmds.c +++ b/src/nvim/ex_cmds.c @@ -5649,7 +5649,7 @@ void ex_sign(exarg_T *eap) // Count cells and check for non-printable chars cells = 0; - for (s = arg; s < p; s += (*mb_ptr2len)(s)) { + for (s = arg; s < p; s += utfc_ptr2len(s)) { if (!vim_isprintc(utf_ptr2char(s))) { break; } -- cgit