From 2306b2df42e8faa0f615f161eb871b9af7bd7af9 Mon Sep 17 00:00:00 2001 From: Damien Lejay Date: Sat, 23 Aug 2025 17:20:03 +0200 Subject: [PATCH] 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 Signed-off-by: Christian Brabandt --- src/message.c | 5 +++-- src/version.c | 2 ++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/message.c b/src/message.c index db2376ecc6..35f57e8db9 100644 --- a/src/message.c +++ b/src/message.c @@ -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; diff --git a/src/version.c b/src/version.c index a1a48ad929..3117586be8 100644 --- a/src/version.c +++ b/src/version.c @@ -724,6 +724,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 1677, /**/ 1676, /**/