From a90f1a2377ab8c796a67628afa932c0a1d174cf7 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Mon, 29 Oct 2007 19:28:31 +0100 Subject: [PATCH] Don't let hit_return_msg() fill the screen on focus events. The "Press ENTER ..." would display on a new line each time focus was lost/gained when FocusLost/FocusGained autocommands were applied. Fix this by checking if message is on the last line and display on same line if so. --- src/message.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/message.c b/src/message.c index 6aa6746f..94e118b0 100644 --- a/src/message.c +++ b/src/message.c @@ -2850,6 +2850,12 @@ repeat_message() } else if (State == HITRETURN || State == SETWSIZE) { + if (msg_row == Rows - 1) + { + msg_didout = FALSE; + msg_col = 0; + msg_clr_eos(); + } hit_return_msg(); msg_row = Rows - 1; } -- 2.11.4.GIT