aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/ex_cmds.c
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2018-09-01 19:46:46 +0200
committerGitHub <noreply@github.com>2018-09-01 19:46:46 +0200
commitf62d4865d88de0bd60218ecb3e08d9f3c772e12e (patch)
tree54bd16926bb85b51273e6dce61f4d85c45e01839 /src/nvim/ex_cmds.c
parent064495a53ace225626289e7143b5520b38e3f5fc (diff)
parenta3549286b24000dcdd4411bd5faf637e1c9a0d3d (diff)
downloadrneovim-f62d4865d88de0bd60218ecb3e08d9f3c772e12e.tar.gz
rneovim-f62d4865d88de0bd60218ecb3e08d9f3c772e12e.tar.bz2
rneovim-f62d4865d88de0bd60218ecb3e08d9f3c772e12e.zip
Merge #8934 'Remove mb_ptr2len_len, mb_ptr2cells, mb_ptr2cells_len'
Diffstat (limited to 'src/nvim/ex_cmds.c')
-rw-r--r--src/nvim/ex_cmds.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/ex_cmds.c b/src/nvim/ex_cmds.c
index c9eccfa6b0..ca975ee02a 100644
--- a/src/nvim/ex_cmds.c
+++ b/src/nvim/ex_cmds.c
@@ -5649,11 +5649,11 @@ 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;
}
- cells += (*mb_ptr2cells)(s);
+ cells += utf_ptr2cells(s);
}
// Currently must be one or two display cells
if (s != p || cells < 1 || cells > 2) {