patch 9.1.1677: wrong ifdef in message.c Commit: https://github.com/vim/vim/commit/2306b2df42e8faa0f615f161eb871b9af7bd7af9 Author: Damien Lejay <dam...@lejay.be> Date: Sat Aug 23 17:20:03 2025 +0200
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 <dam...@lejay.be> Signed-off-by: Christian Brabandt <c...@256bit.org> diff --git a/src/message.c b/src/message.c index db2376ecc..35f57e8db 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 a1a48ad92..3117586be 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, /**/ -- -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_dev+unsubscr...@googlegroups.com. To view this discussion visit https://groups.google.com/d/msgid/vim_dev/E1upqBv-00F6YC-QT%40256bit.org.