diff options
Diffstat (limited to 'src/nvim/fileio.c')
-rw-r--r-- | src/nvim/fileio.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/nvim/fileio.c b/src/nvim/fileio.c index e9f1aad781..25bd9db055 100644 --- a/src/nvim/fileio.c +++ b/src/nvim/fileio.c @@ -6327,6 +6327,9 @@ win_found: curwin = aco->save_curwin; curbuf = curwin->w_buffer; + // In case the autocommand moves the cursor to a position that does not + // exist in curbuf + check_cursor(); } } } |