aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/digraph.c
diff options
context:
space:
mode:
authorDundar Göc <gocdundar@gmail.com>2022-08-26 23:11:25 +0200
committerdundargoc <gocdundar@gmail.com>2022-09-11 13:28:59 +0200
commit3ff46544c9872b4161fd098569c30b55fe3abd36 (patch)
tree589b9ebdd86fde7e200b6235596ce6feac976122 /src/nvim/digraph.c
parent4638fcf4fb688fa548b8ce337ec3b7c1327fbfe9 (diff)
downloadrneovim-3ff46544c9872b4161fd098569c30b55fe3abd36.tar.gz
rneovim-3ff46544c9872b4161fd098569c30b55fe3abd36.tar.bz2
rneovim-3ff46544c9872b4161fd098569c30b55fe3abd36.zip
refactor: replace char_u with char
Work on https://github.com/neovim/neovim/issues/459
Diffstat (limited to 'src/nvim/digraph.c')
-rw-r--r--src/nvim/digraph.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nvim/digraph.c b/src/nvim/digraph.c
index 8e31d3feab..c0e7a6250e 100644
--- a/src/nvim/digraph.c
+++ b/src/nvim/digraph.c
@@ -1926,7 +1926,7 @@ void f_digraph_get(typval_T *argvars, typval_T *rettv, EvalFuncData fptr)
if (digraphs == NULL) {
return;
}
- if (STRLEN(digraphs) != 2) {
+ if (strlen(digraphs) != 2) {
semsg(_(e_digraph_must_be_just_two_characters_str), digraphs);
return;
}
@@ -2036,7 +2036,7 @@ char *keymap_init(void)
// Source the keymap file. It will contain a ":loadkeymap" command
// which will call ex_loadkeymap() below.
- buflen = STRLEN(curbuf->b_p_keymap) + STRLEN(p_enc) + 14;
+ buflen = strlen(curbuf->b_p_keymap) + strlen(p_enc) + 14;
buf = xmalloc(buflen);
// try finding "keymap/'keymap'_'encoding'.vim" in 'runtimepath'
@@ -2102,7 +2102,7 @@ void ex_loadkeymap(exarg_T *eap)
s = skiptowhite(p);
kp->to = xstrnsave(p, (size_t)(s - p));
- if ((STRLEN(kp->from) + STRLEN(kp->to) >= KMAP_LLEN)
+ if ((strlen(kp->from) + strlen(kp->to) >= KMAP_LLEN)
|| (*kp->from == NUL)
|| (*kp->to == NUL)) {
if (*kp->to == NUL) {