]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.1.1677: wrong ifdef in message.c v9.1.1677
authorDamien Lejay <damien@lejay.be>
Sat, 23 Aug 2025 15:20:03 +0000 (17:20 +0200)
committerChristian Brabandt <cb@256bit.org>
Sat, 23 Aug 2025 15:23:34 +0000 (17:23 +0200)
Problem:  wrong ifdef in message.c
Solution: change it to #ifndef MSWIN (Damien Lejay)

The extra newline on screen switch is needed for all TTY/termcap
backends (Unix, VMS, others).

Only Windows uses a different console API.
Better use #ifndef MSWIN to express the real intent.

closes: #18076

Signed-off-by: Damien Lejay <damien@lejay.be>
Signed-off-by: Christian Brabandt <cb@256bit.org>
src/message.c
src/version.c

index db2376ecc6ae170a5b3d31af118c7149f9733e5e..35f57e8db98eedf22e2ec25f7cb62d9234a6e20f 100644 (file)
@@ -1457,9 +1457,10 @@ wait_return(int redraw)
     setmouse();
     msg_check();
 
-#if defined(UNIX) || defined(VMS)
+#ifndef MSWIN
     /*
-     * When switching screens, we need to output an extra newline on exit.
+     * On TTY-style terminals (all but Windows), an extra newline is
+     * needed when switching screens on exit.
      */
     if (swapping_screen() && !termcap_active)
        newline_on_exit = TRUE;
index a1a48ad92980599716a623500c154904b17668fb..3117586be860bc224260197d213efc9aaa1fb8c1 100644 (file)
@@ -724,6 +724,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1677,
 /**/
     1676,
 /**/