diff options
author | Bram Moolenaar <Bram@vim.org> | 2005-01-25 22:18:08 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2005-01-25 22:18:08 +0000 |
commit | 7df2d6629f7cfb05e33a1e27cd7fda943afbbba9 (patch) | |
tree | 06b43379638af7a02741262c8d236b2a43b44916 /src/misc1.c | |
parent | dad6b69c00a16f06624aeca1353a7aa53f631893 (diff) | |
download | vim-7df2d6629f7cfb05e33a1e27cd7fda943afbbba9.zip |
updated for version 7.0044
Diffstat (limited to 'src/misc1.c')
-rw-r--r-- | src/misc1.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/misc1.c b/src/misc1.c index 4c2b55e91..4d7cf6028 100644 --- a/src/misc1.c +++ b/src/misc1.c @@ -3092,10 +3092,15 @@ msgmore(n) long pn; if (global_busy /* no messages now, wait until global is finished */ - || keep_msg != NULL /* there is a message already, skip this one */ || !messaging()) /* 'lazyredraw' set, don't do messages now */ return; + /* We don't want to overwrite another important message, but do overwrite + * a previous "more lines" or "fewer lines" message, so that "5dd" and + * then "put" reports the last action. */ + if (keep_msg != NULL && !keep_msg_more) + return; + if (n > 0) pn = n; else @@ -3123,6 +3128,7 @@ msgmore(n) { set_keep_msg(msg_buf); keep_msg_attr = 0; + keep_msg_more = TRUE; } } } |