patch 9.1.1431: Hit-Enter Prompt when loading session files
Commit:
https://github.com/vim/vim/commit/0ca59661966dc3e7e4ce5e266acbe1dc01dd8477
Author: Miguel Barro <[email protected]>
Date: Wed Jun 4 21:03:27 2025 +0200
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: #17445
Signed-off-by: Miguel Barro <[email protected]>
Signed-off-by: Christian Brabandt <[email protected]>
diff --git a/src/session.c b/src/session.c
index 56d368ac4..6696e3cfa 100644
--- a/src/session.c
+++ b/src/session.c
@@ -687,9 +687,9 @@ makeopens(
// set 'shortmess' for the following. Add the 'A' flag if it was there
if (put_line(fd, "if &shortmess =~ 'A'") == FAIL
- || put_line(fd, " set shortmess=aoOA") == FAIL
+ || put_line(fd, " set shortmess+=aoOA") == FAIL
|| put_line(fd, "else") == FAIL
- || put_line(fd, " set shortmess=aoO") == FAIL
+ || put_line(fd, " set shortmess+=aoO") == FAIL
|| put_line(fd, "endif") == FAIL)
goto fail;
diff --git a/src/version.c b/src/version.c
index 5630b8ad7..0df54f29b 100644
--- a/src/version.c
+++ b/src/version.c
@@ -709,6 +709,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 1431,
/**/
1430,
/**/
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion visit
https://groups.google.com/d/msgid/vim_dev/E1uMtZm-0001bT-Gy%40256bit.org.