mirror of
https://github.com/neovim/neovim.git
synced 2026-07-18 23:21:35 +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
|
// set 'shortmess' for the following. Add the 'A' flag if it was there
|
||||||
PUTLINE_FAIL("if &shortmess =~ 'A'");
|
PUTLINE_FAIL("if &shortmess =~ 'A'");
|
||||||
PUTLINE_FAIL(" set shortmess=aoOA");
|
PUTLINE_FAIL(" set shortmess+=aoOA");
|
||||||
PUTLINE_FAIL("else");
|
PUTLINE_FAIL("else");
|
||||||
PUTLINE_FAIL(" set shortmess=aoO");
|
PUTLINE_FAIL(" set shortmess+=aoO");
|
||||||
PUTLINE_FAIL("endif");
|
PUTLINE_FAIL("endif");
|
||||||
|
|
||||||
// Now save the current files, current buffer first.
|
// Now save the current files, current buffer first.
|
||||||
|
|||||||
Reference in New Issue
Block a user