1 To: vim_dev@googlegroups.com
4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
11 Problem: Win32: Running a filter command makes Vim lose focus.
12 Solution: Use SW_SHOWMINNOACTIVE instead of SW_SHOWMINIMIZED. (Hong Xu)
16 *** ../vim-7.3.062/src/os_win32.c 2010-11-10 15:37:00.000000000 +0100
17 --- src/os_win32.c 2010-11-24 12:31:46.000000000 +0100
20 * It's nicer to run a filter command in a minimized window, but in
21 * Windows 95 this makes the command MUCH slower. We can't do it under
22 * Win32s either as it stops the synchronous spawn workaround working.
24 if ((options & SHELL_DOOUT) && !mch_windows95() && !gui_is_win32s())
25 ! si.wShowWindow = SW_SHOWMINIMIZED;
27 si.wShowWindow = SW_SHOWNORMAL;
30 * It's nicer to run a filter command in a minimized window, but in
31 * Windows 95 this makes the command MUCH slower. We can't do it under
32 * Win32s either as it stops the synchronous spawn workaround working.
33 + * Don't activate the window to keep focus on Vim.
35 if ((options & SHELL_DOOUT) && !mch_windows95() && !gui_is_win32s())
36 ! si.wShowWindow = SW_SHOWMINNOACTIVE;
38 si.wShowWindow = SW_SHOWNORMAL;
40 *** ../vim-7.3.062/src/version.c 2010-11-16 19:25:56.000000000 +0100
41 --- src/version.c 2010-11-24 12:32:52.000000000 +0100
45 { /* Add new patch number below this line */
51 SOLDIER: Where did you get the coconuts?
52 ARTHUR: Through ... We found them.
53 SOLDIER: Found them? In Mercea. The coconut's tropical!
54 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
56 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
57 /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
58 \\\ an exciting new programming language -- http://www.Zimbu.org ///
59 \\\ help me help AIDS victims -- http://ICCF-Holland.org ///