summaryrefslogtreecommitdiff
path: root/src/screen.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2010-07-20 13:11:28 +0200
committerBram Moolenaar <Bram@vim.org>2010-07-20 13:11:28 +0200
commitc7040a5615827cefe0edbdf7f69c6640fa1aa1e1 (patch)
treebc7724c7429c57881ca500db0f9cfcde87592e93 /src/screen.c
parent704ac92541f6ff9968bb4a7ee36c413ba0d672f2 (diff)
downloadvim-git-c7040a5615827cefe0edbdf7f69c6640fa1aa1e1.tar.gz
Fix: When 'searchhl' causes a hang make CTRL-C disable 'shearchhl'.
Diffstat (limited to 'src/screen.c')
-rw-r--r--src/screen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/screen.c b/src/screen.c
index ac531d485..db26046ae 100644
--- a/src/screen.c
+++ b/src/screen.c
@@ -7119,7 +7119,7 @@ next_search_hl(win, shl, lnum, mincol)
NULL
#endif
);
- if (called_emsg)
+ if (called_emsg || got_int)
{
/* Error while handling regexp: stop using this regexp. */
if (shl == &search_hl)