aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/edit.c
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-07-06 20:44:41 +0800
committerGitHub <noreply@github.com>2022-07-06 20:44:41 +0800
commitc84ae5706fb0c31c415fedbc15021e9b2ef46065 (patch)
treeeb972208a75d0a28213cc040bad4d093ab2aec89 /src/nvim/edit.c
parent93c8fe77cbfd3934c7599196e573136f75f6e9af (diff)
parent1a490a5bc552fcdc299684b725c5044a9e9c73c7 (diff)
downloadrneovim-c84ae5706fb0c31c415fedbc15021e9b2ef46065.tar.gz
rneovim-c84ae5706fb0c31c415fedbc15021e9b2ef46065.tar.bz2
rneovim-c84ae5706fb0c31c415fedbc15021e9b2ef46065.zip
Merge pull request #19247 from zeertzjq/vim-8.2.4165
vim-patch:7.4.212,8.2.{4165,4221}: some functions in normal.c are too long
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();