diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-05-24 13:11:47 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-05-24 13:11:47 +0200 |
commit | 984f031fb02fe301a8dbf8a35b871c9f60b8f61e (patch) | |
tree | 9b6cd362927d00e776e7b476181ee9cbfc3a724b /src/main.c | |
parent | c97582b0296cb6f63f3c2e5a0eb954f5920a8e42 (diff) | |
download | vim-git-984f031fb02fe301a8dbf8a35b871c9f60b8f61e.tar.gz |
patch 8.1.1375: without "TS" in 'shortmess' get a hit-enter prompt oftenv8.1.1375
Problem: Without "TS" in 'shortmess' get a hit-enter prompt often.
Solution: Always truncate the search message. Also avoid putting it in the
message history. (closes #4413)
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/main.c b/src/main.c index 983595053..79b484454 100644 --- a/src/main.c +++ b/src/main.c @@ -1271,11 +1271,13 @@ main_loop( { char_u *p; - /* msg_attr_keep() will set keep_msg to NULL, must free the - * string here. Don't reset keep_msg, msg_attr_keep() uses it - * to check for duplicates. */ + // msg_attr_keep() will set keep_msg to NULL, must free the + // string here. Don't reset keep_msg, msg_attr_keep() uses it + // to check for duplicates. Never put this message in history. p = keep_msg; + msg_hist_off = TRUE; msg_attr((char *)p, keep_msg_attr); + msg_hist_off = FALSE; vim_free(p); } if (need_fileinfo) /* show file info after redraw */ |