Skip to content

Commit

Permalink
Flush while searching in included files
Browse files Browse the repository at this point in the history
This fixes a problem where the completion menu would not pop up
immediately when hitting Ctrl-n to complete an identifier in a .pl file.
  • Loading branch information
b4winckler committed Jan 29, 2012
1 parent 30ed2e9 commit 8a4c9fe
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/search.c
Expand Up @@ -5154,6 +5154,12 @@ find_pattern_in_path(ptr, dir, len, whole, skip_comments,
goto search_line;
}
line_breakcheck();
#ifdef FEAT_GUI_MACVIM
/* This loop could potentially take a long time, so make sure MacVim
* gets a chance to flush its output. */
if (gui.in_use)
gui_macvim_flush();
#endif
#ifdef FEAT_INS_EXPAND
if (action == ACTION_EXPAND)
ins_compl_check_keys(30);
Expand Down

0 comments on commit 8a4c9fe

Please sign in to comment.