From: Muraoka Taro Date: Sun, 11 Jan 2026 19:44:06 +0000 (+0000) Subject: patch 9.1.2081: MS-Windows: unnecessary "#ifdef FEAT_GUI" in os_win32.c X-Git-Tag: v9.1.2081^0 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=47c84295bb0444bc03598e82965c6175f8b96226;p=thirdparty%2Fvim.git 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 Signed-off-by: Christian Brabandt --- diff --git a/src/os_win32.c b/src/os_win32.c index 83f1b1ce3a..9526a6ae92 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 61e94f5ebb..126e1cf775 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, /**/