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 <miguel.barro@live.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
Miguel Barro
2025-06-04 21:03:27 +02:00
committed by Christian Brabandt
parent bb78ea23c6
commit 0ca5966196
2 changed files with 4 additions and 2 deletions

View File

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

View File

@ -709,6 +709,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
1431,
/**/
1430,
/**/