patch 9.1.2081: MS-Windows: unnecessary "#ifdef FEAT_GUI" in os_win32.c
Commit: https://github.com/vim/vim/commit/47c84295bb0444bc03598e82965c6175f8b96226 Author: Muraoka Taro <[email protected]> Date: Sun Jan 11 19:44:06 2026 +0000 patch 9.1.2081: MS-Windows: unnecessary "#ifdef FEAT_GUI" in os_win32.c Problem: MS-Windows: "#ifdef FEAT_GUI" exists within "ifdef FEAT_GUI_MSWIN", which is confusing when reading the code. FEAT_GUI is always defined if FEAT_GUI_MSWIN is defined (see vim.h). Therefore, this check and the else block are unnecessary. Solution: Removed unnecessary "#ifdef FEAT_GUI" (Muraoka Taro). closes: #19164 Signed-off-by: Muraoka Taro <[email protected]> Signed-off-by: Christian Brabandt <[email protected]> diff --git a/src/os_win32.c b/src/os_win32.c index 83f1b1ce3..9526a6ae9 100644 --- a/src/os_win32.c +++ b/src/os_win32.c @@ -4848,7 +4848,6 @@ mch_system_classic(char *cmd, int options) // Wait for the command to terminate before continuing { -# ifdef FEAT_GUI int delay = 1; // Keep updating the window while waiting for the shell to finish. @@ -4872,9 +4871,6 @@ mch_system_classic(char *cmd, int options) if (delay < 50) delay += 10; } -# else - WaitForSingleObject(pi.hProcess, INFINITE); -# endif // Get the command exit code GetExitCodeProcess(pi.hProcess, &ret); diff --git a/src/version.c b/src/version.c index 61e94f5eb..126e1cf77 100644 --- a/src/version.c +++ b/src/version.c @@ -734,6 +734,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 2081, /**/ 2080, /**/ -- -- 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 [email protected]. To view this discussion visit https://groups.google.com/d/msgid/vim_dev/E1vfNNX-009e91-Ix%40256bit.org.
