diff options
Diffstat (limited to 'src/gui_w32.c')
-rw-r--r-- | src/gui_w32.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/gui_w32.c b/src/gui_w32.c index df079538ac..a3a7ffa248 100644 --- a/src/gui_w32.c +++ b/src/gui_w32.c @@ -818,9 +818,11 @@ FindWindowTitle(HWND hwnd, LPARAM lParam) { if (strstr(buf, title) != NULL) { - /* Found it. Store the window ref. and quit searching. */ + /* Found it. Store the window ref. and quit searching if MDI + * works. */ vim_parent_hwnd = FindWindowEx(hwnd, NULL, "MDIClient", NULL); - return FALSE; + if (vim_parent_hwnd != NULL) + return FALSE; } } return TRUE; /* continue searching */ |