aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/ex_docmd.c
diff options
context:
space:
mode:
authorbfredl <bjorn.linse@gmail.com>2022-01-21 18:04:40 +0100
committerGitHub <noreply@github.com>2022-01-21 18:04:40 +0100
commite07a4b97f6552674f6038d15c0767bbfea082bf2 (patch)
tree479eed2cc5ce0afea43e239848e934b9a6df2c11 /src/nvim/ex_docmd.c
parentbe22cc1264ba27ed46f8ef3123c532d721478607 (diff)
parent6e69a3c3e79fd78b31753343213e68e73b0048c4 (diff)
downloadrneovim-e07a4b97f6552674f6038d15c0767bbfea082bf2.tar.gz
rneovim-e07a4b97f6552674f6038d15c0767bbfea082bf2.tar.bz2
rneovim-e07a4b97f6552674f6038d15c0767bbfea082bf2.zip
Merge pull request #16936 from zeertzjq/no-escape-csi
input: never escape CSI bytes and clean up related names and comments
Diffstat (limited to 'src/nvim/ex_docmd.c')
-rw-r--r--src/nvim/ex_docmd.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/nvim/ex_docmd.c b/src/nvim/ex_docmd.c
index b33a17c631..54d8c93b47 100644
--- a/src/nvim/ex_docmd.c
+++ b/src/nvim/ex_docmd.c
@@ -6204,7 +6204,6 @@ static void do_ucmd(exarg_T *eap)
// K_SPECIAL has been put in the buffer as K_SPECIAL
// KS_SPECIAL KE_FILLER, like for mappings, but
// do_cmdline() doesn't handle that, so convert it back.
- // Also change K_SPECIAL KS_EXTRA KE_CSI into CSI.
len = ksp - p;
if (len > 0) {
memmove(q, p, len);
@@ -8627,7 +8626,7 @@ static void ex_normal(exarg_T *eap)
return;
}
- // vgetc() expects a CSI and K_SPECIAL to have been escaped. Don't do
+ // vgetc() expects K_SPECIAL to have been escaped. Don't do
// this for the K_SPECIAL leading byte, otherwise special keys will not
// work.
{
@@ -8636,8 +8635,7 @@ static void ex_normal(exarg_T *eap)
// Count the number of characters to be escaped.
for (p = eap->arg; *p != NUL; p++) {
for (l = utfc_ptr2len(p) - 1; l > 0; l--) {
- if (*++p == K_SPECIAL // trailbyte K_SPECIAL or CSI
- ) {
+ if (*++p == K_SPECIAL) { // trailbyte K_SPECIAL
len += 2;
}
}