aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/screen.c
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2019-06-04 09:20:59 +0200
committerGitHub <noreply@github.com>2019-06-04 09:20:59 +0200
commit2ae5427b3cfdd20353584299524c650c26f8fd17 (patch)
treef91203398811c754206c8831d03172e47eb2a305 /src/nvim/screen.c
parent58f505dc7432cad76269ee447029eb1ad94b5aeb (diff)
parent5f41ca4013d17a81fcfd0a7b0be0422cb9cc25ec (diff)
downloadrneovim-2ae5427b3cfdd20353584299524c650c26f8fd17.tar.gz
rneovim-2ae5427b3cfdd20353584299524c650c26f8fd17.tar.bz2
rneovim-2ae5427b3cfdd20353584299524c650c26f8fd17.zip
Merge #10113 from janlazo/vim-8.0.1518
vim-patch:8.0.1518,8.1.{2,804}
Diffstat (limited to 'src/nvim/screen.c')
-rw-r--r--src/nvim/screen.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/nvim/screen.c b/src/nvim/screen.c
index 9439869b32..84c3f169ef 100644
--- a/src/nvim/screen.c
+++ b/src/nvim/screen.c
@@ -6595,6 +6595,9 @@ void unshowmode(bool force)
// Clear the mode message.
void clearmode(void)
{
+ const int save_msg_row = msg_row;
+ const int save_msg_col = msg_col;
+
msg_ext_ui_flush();
msg_pos_mode();
if (reg_recording != 0) {
@@ -6602,6 +6605,9 @@ void clearmode(void)
}
msg_clr_eos();
msg_ext_flush_showmode();
+
+ msg_col = save_msg_col;
+ msg_row = save_msg_row;
}
static void recording_mode(int attr)