From 0ca59661966dc3e7e4ce5e266acbe1dc01dd8477 Mon Sep 17 00:00:00 2001 From: Miguel Barro Date: Wed, 4 Jun 2025 21:03:27 +0200 Subject: [PATCH] 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 Signed-off-by: Christian Brabandt --- src/session.c | 4 ++-- src/version.c | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/session.c b/src/session.c index 56d368ac45..6696e3cfa0 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 5630b8ad7f..0df54f29b9 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, /**/