Hello,

The attachment is a patch which makes vim not to lose its focus when
executing an external program in background on Windows. It is always
annoying when use "system()" function to execute a program in background
and gvim loses its focus (the focus was set to the console window owned by
the subprocess) until the subprocess terminates. Hope this patch does not
conflict any other code.

Hong Xu
2010/11/24


-----------------------------------------------------
diff -r 840c3cadb842 src/os_win32.c
--- a/src/os_win32.c    Tue Nov 16 20:34:40 2010 +0100
+++ b/src/os_win32.c    Wed Nov 24 13:26:33 2010 +0800
@@ -3187,7 +3187,7 @@
      * Win32s either as it stops the synchronous spawn workaround working.
      */
     if ((options & SHELL_DOOUT) && !mch_windows95() && !gui_is_win32s())
-       si.wShowWindow = SW_SHOWMINIMIZED;
+       si.wShowWindow = SW_SHOWMINNOACTIVE;
     else
        si.wShowWindow = SW_SHOWNORMAL;
     si.cbReserved2 = 0;

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

Attachment: win.patch
Description: Binary data

Raspunde prin e-mail lui