0
0
mirror of https://github.com/vim/vim.git synced 2025-10-22 08:34:29 -04:00

patch 9.1.1677: wrong ifdef in message.c

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>
This commit is contained in:
Damien Lejay
2025-08-23 17:20:03 +02:00
committed by Christian Brabandt
parent 57379302aa
commit 2306b2df42
2 changed files with 5 additions and 2 deletions

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

View File

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