mirror of
https://github.com/neovim/neovim
synced 2025-07-16 01:01:49 +00:00
vim-patch:9.1.1431: Hit-Enter Prompt when loading session files
Problem: Hit-Enter Prompt when loading session files
Solution: use set+= for 'shortmess' to keep the existing flags
(Miguel Barro)
closes: vim/vim#17445
0ca5966196
Co-authored-by: Miguel Barro <miguel.barro@live.com>
This commit is contained in:
@ -645,9 +645,9 @@ static int makeopens(FILE *fd, char *dirnow)
|
||||
|
||||
// set 'shortmess' for the following. Add the 'A' flag if it was there
|
||||
PUTLINE_FAIL("if &shortmess =~ 'A'");
|
||||
PUTLINE_FAIL(" set shortmess=aoOA");
|
||||
PUTLINE_FAIL(" set shortmess+=aoOA");
|
||||
PUTLINE_FAIL("else");
|
||||
PUTLINE_FAIL(" set shortmess=aoO");
|
||||
PUTLINE_FAIL(" set shortmess+=aoO");
|
||||
PUTLINE_FAIL("endif");
|
||||
|
||||
// Now save the current files, current buffer first.
|
||||
|
Reference in New Issue
Block a user