Mercurial > vim
comparison src/main.c @ 16746:73ff6357da5b v8.1.1375
patch 8.1.1375: without "TS" in 'shortmess' get a hit-enter prompt often
commit https://github.com/vim/vim/commit/984f031fb02fe301a8dbf8a35b871c9f60b8f61e
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri May 24 13:11:47 2019 +0200
patch 8.1.1375: without "TS" in 'shortmess' get a hit-enter prompt often
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)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 24 May 2019 13:15:05 +0200 |
parents | b52ea9c5f1db |
children | ef00b6bc186b |
comparison
equal
deleted
inserted
replaced
16745:4ac8cb8c8146 | 16746:73ff6357da5b |
---|---|
1269 /* display message after redraw */ | 1269 /* display message after redraw */ |
1270 if (keep_msg != NULL) | 1270 if (keep_msg != NULL) |
1271 { | 1271 { |
1272 char_u *p; | 1272 char_u *p; |
1273 | 1273 |
1274 /* msg_attr_keep() will set keep_msg to NULL, must free the | 1274 // msg_attr_keep() will set keep_msg to NULL, must free the |
1275 * string here. Don't reset keep_msg, msg_attr_keep() uses it | 1275 // string here. Don't reset keep_msg, msg_attr_keep() uses it |
1276 * to check for duplicates. */ | 1276 // to check for duplicates. Never put this message in history. |
1277 p = keep_msg; | 1277 p = keep_msg; |
1278 msg_hist_off = TRUE; | |
1278 msg_attr((char *)p, keep_msg_attr); | 1279 msg_attr((char *)p, keep_msg_attr); |
1280 msg_hist_off = FALSE; | |
1279 vim_free(p); | 1281 vim_free(p); |
1280 } | 1282 } |
1281 if (need_fileinfo) /* show file info after redraw */ | 1283 if (need_fileinfo) /* show file info after redraw */ |
1282 { | 1284 { |
1283 fileinfo(FALSE, TRUE, FALSE); | 1285 fileinfo(FALSE, TRUE, FALSE); |