aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/edit.c
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-07-06 13:25:22 +0800
committerzeertzjq <zeertzjq@outlook.com>2022-07-06 19:58:44 +0800
commit1b5f53ca9574611273282dfbed91021d75242335 (patch)
treeead2935158bb97dc76cb624548fb2ca6a3aa2c9f /src/nvim/edit.c
parent93c8fe77cbfd3934c7599196e573136f75f6e9af (diff)
downloadrneovim-1b5f53ca9574611273282dfbed91021d75242335.tar.gz
rneovim-1b5f53ca9574611273282dfbed91021d75242335.tar.bz2
rneovim-1b5f53ca9574611273282dfbed91021d75242335.zip
vim-patch:7.4.212
Problem: Now that the +visual feature is always enabled the #ifdefs for it are not useful. Solution: Remove the checks for FEAT_VISUAL. https://github.com/vim/vim/commit/f7ff6e85e8a4e84cff023f5db4b66ef85986605a
Diffstat (limited to 'src/nvim/edit.c')
-rw-r--r--src/nvim/edit.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/nvim/edit.c b/src/nvim/edit.c
index 06f6d7f97b..de6f2c32de 100644
--- a/src/nvim/edit.c
+++ b/src/nvim/edit.c
@@ -7935,13 +7935,8 @@ static bool ins_esc(long *count, int cmdchar, bool nomove)
* Don't do it for CTRL-O, unless past the end of the line.
*/
if (!nomove
- && (curwin->w_cursor.col != 0
- || curwin->w_cursor.coladd > 0
- )
- && (restart_edit == NUL
- || (gchar_cursor() == NUL
- && !VIsual_active
- ))
+ && (curwin->w_cursor.col != 0 || curwin->w_cursor.coladd > 0)
+ && (restart_edit == NUL || (gchar_cursor() == NUL && !VIsual_active))
&& !revins_on) {
if (curwin->w_cursor.coladd > 0 || get_ve_flags() == VE_ALL) {
oneleft();