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:
zeertzjq
2025-06-06 06:36:33 +08:00
parent 2b21c9c23f
commit f89381e05c

View File

@ -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.