commit f89381e05cb526739eac7a9d4db46752ef55f955
parent 2b21c9c23f889555dd93ba508a0f787b25ed9bb4
Author: zeertzjq <zeertzjq@outlook.com>
Date: Fri, 6 Jun 2025 06:36:33 +0800
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
https://github.com/vim/vim/commit/0ca59661966dc3e7e4ce5e266acbe1dc01dd8477
Co-authored-by: Miguel Barro <miguel.barro@live.com>
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/nvim/ex_session.c b/src/nvim/ex_session.c
@@ -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.