diff options
author | bfredl <bjorn.linse@gmail.com> | 2023-11-26 21:53:07 +0100 |
---|---|---|
committer | bfredl <bjorn.linse@gmail.com> | 2023-11-26 21:53:07 +0100 |
commit | a917da4ca55be8726f26a8305c53bdd5b2c7eea4 (patch) | |
tree | bd523e5e08dbb07bab2d5abcd2bfa499347fea64 /src/nvim/ex_cmds.c | |
parent | 27fc11c0486354ce23ceb57649f22aedbfe2d48b (diff) | |
download | rneovim-a917da4ca55be8726f26a8305c53bdd5b2c7eea4.tar.gz rneovim-a917da4ca55be8726f26a8305c53bdd5b2c7eea4.tar.bz2 rneovim-a917da4ca55be8726f26a8305c53bdd5b2c7eea4.zip |
refactor(encoding): remove redundant vim_isprintc_strict
This function is identical to vim_isprintc when encoding=utf-8 is used
As this is the only internal encoding nvim supports, it is now redundant
ref #2905
Diffstat (limited to 'src/nvim/ex_cmds.c')
-rw-r--r-- | src/nvim/ex_cmds.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/ex_cmds.c b/src/nvim/ex_cmds.c index 324364a297..8378c04197 100644 --- a/src/nvim/ex_cmds.c +++ b/src/nvim/ex_cmds.c @@ -155,7 +155,7 @@ void do_ascii(exarg_T *eap) ? NL // NL is stored as CR. : c); char buf1[20]; - if (vim_isprintc_strict(c) && (c < ' ' || c > '~')) { + if (vim_isprintc(c) && (c < ' ' || c > '~')) { char buf3[7]; transchar_nonprint(curbuf, buf3, c); vim_snprintf(buf1, sizeof(buf1), " <%s>", buf3); |