aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/ex_cmds.c
diff options
context:
space:
mode:
authorbfredl <bjorn.linse@gmail.com>2023-11-26 21:53:07 +0100
committerbfredl <bjorn.linse@gmail.com>2023-11-26 21:53:07 +0100
commita917da4ca55be8726f26a8305c53bdd5b2c7eea4 (patch)
treebd523e5e08dbb07bab2d5abcd2bfa499347fea64 /src/nvim/ex_cmds.c
parent27fc11c0486354ce23ceb57649f22aedbfe2d48b (diff)
downloadrneovim-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.c2
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);