Mercurial > vim
changeset 2643:e6372ac3ebe5 v7.3.063
updated for version 7.3.063
Problem: Win32: Running a filter command makes Vim lose focus.
Solution: Use SW_SHOWMINNOACTIVE instead of SW_SHOWMINIMIZED. (Hong Xu)
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Wed, 24 Nov 2010 12:35:21 +0100 |
parents | 840c3cadb842 |
children | e856f9cc2aee |
files | src/os_win32.c src/version.c |
diffstat | 2 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/os_win32.c +++ b/src/os_win32.c @@ -3185,9 +3185,10 @@ mch_system(char *cmd, int options) * It's nicer to run a filter command in a minimized window, but in * Windows 95 this makes the command MUCH slower. We can't do it under * Win32s either as it stops the synchronous spawn workaround working. + * Don't activate the window to keep focus on Vim. */ 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;