diff options
author | dundargoc <33953936+dundargoc@users.noreply.github.com> | 2022-06-15 02:49:54 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-15 08:49:54 +0800 |
commit | 6de7f32d52822c3c09d24720efc65efe97a6e698 (patch) | |
tree | b8f22be2faf350e2f3fa34068f1453ef279a00d0 /src/nvim/normal.c | |
parent | 8ba64dd3ad1822efd6f986349e99f5f85afd7be7 (diff) | |
download | rneovim-6de7f32d52822c3c09d24720efc65efe97a6e698.tar.gz rneovim-6de7f32d52822c3c09d24720efc65efe97a6e698.tar.bz2 rneovim-6de7f32d52822c3c09d24720efc65efe97a6e698.zip |
docs: fix typos (#18866)
docs: fix typos and similarly insignificant changes
Co-authored-by: zeertzjq <zeertzjq@outlook.com>
Co-authored-by: smjonas <jonas.strittmatter@gmx.de>
Co-authored-by: kanreki <32443233+kanreki@users.noreply.github.com>
Diffstat (limited to 'src/nvim/normal.c')
-rw-r--r-- | src/nvim/normal.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/nvim/normal.c b/src/nvim/normal.c index 87a9e1e765..35a7ee3319 100644 --- a/src/nvim/normal.c +++ b/src/nvim/normal.c @@ -998,9 +998,8 @@ static int normal_execute(VimState *state, int key) // In Select mode, typed text replaces the selection. if (VIsual_active && VIsual_select && (vim_isprintc(s->c) || s->c == NL || s->c == CAR || s->c == K_KENTER)) { - // Fake a "c"hange command. When "restart_edit" is set (e.g., because - // 'insertmode' is set) fake a "d"elete command, Insert mode will - // restart automatically. + // Fake a "c"hange command. + // When "restart_edit" is set fake a "d"elete command, Insert mode will restart automatically. // Insert the typed character in the typeahead buffer, so that it can // be mapped in Insert mode. Required for ":lmap" to work. int len = ins_char_typebuf(vgetc_char, vgetc_mod_mask); @@ -6772,8 +6771,6 @@ static void nv_esc(cmdarg_T *cap) } } - // Don't reset "restart_edit" when 'insertmode' is set, it won't be - // set again below when halfway through a mapping. restart_edit = 0; if (cmdwin_type != 0) { |