diff options
author | bfredl <bjorn.linse@gmail.com> | 2022-01-21 18:04:40 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-21 18:04:40 +0100 |
commit | e07a4b97f6552674f6038d15c0767bbfea082bf2 (patch) | |
tree | 479eed2cc5ce0afea43e239848e934b9a6df2c11 /src/nvim/edit.c | |
parent | be22cc1264ba27ed46f8ef3123c532d721478607 (diff) | |
parent | 6e69a3c3e79fd78b31753343213e68e73b0048c4 (diff) | |
download | rneovim-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/edit.c')
-rw-r--r-- | src/nvim/edit.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nvim/edit.c b/src/nvim/edit.c index 9efe5a27c4..a9c606ec13 100644 --- a/src/nvim/edit.c +++ b/src/nvim/edit.c @@ -260,7 +260,7 @@ static colnr_T Insstart_blank_vcol; // vcol for first inserted blank static bool update_Insstart_orig = true; // set Insstart_orig to Insstart static char_u *last_insert = NULL; // the text of the previous insert, - // K_SPECIAL and CSI are escaped + // K_SPECIAL is escaped static int last_insert_skip; // nr of chars in front of previous insert static int new_insert_skip; // nr of chars in front of current insert static int did_restart_edit; // "restart_edit" when calling edit() @@ -6817,7 +6817,7 @@ void free_last_insert(void) /// Add character "c" to buffer "s" /// -/// Escapes the special meaning of K_SPECIAL and CSI, handles multi-byte +/// Escapes the special meaning of K_SPECIAL, handles multi-byte /// characters. /// /// @param[in] c Character to add. @@ -6831,7 +6831,7 @@ char_u *add_char2buf(int c, char_u *s) const int len = utf_char2bytes(c, temp); for (int i = 0; i < len; i++) { c = temp[i]; - // Need to escape K_SPECIAL and CSI like in the typeahead buffer. + // Need to escape K_SPECIAL like in the typeahead buffer. if (c == K_SPECIAL) { *s++ = K_SPECIAL; *s++ = KS_SPECIAL; |