summaryrefslogtreecommitdiffstats
path: root/src/ex_getln.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2008-01-19 14:59:58 +0000
committerBram Moolenaar <Bram@vim.org>2008-01-19 14:59:58 +0000
commit91a4e82243198d3c54b51296c532005daf5ccd3b (patch)
treec25223c268fa6be1229012ac34162233ef84e255 /src/ex_getln.c
parent4bad6c8d3dfe81d6171f20f1c3f7fc76bc2d89a7 (diff)
updated for version 7.1-236v7.1.236
Diffstat (limited to 'src/ex_getln.c')
-rw-r--r--src/ex_getln.c15
1 files changed, 14 insertions, 1 deletions
diff --git a/src/ex_getln.c b/src/ex_getln.c
index d43eb2a8f0..b1f04d8d07 100644
--- a/src/ex_getln.c
+++ b/src/ex_getln.c
@@ -1709,6 +1709,9 @@ cmdline_changed:
if (p_is && !cmd_silent && (firstc == '/' || firstc == '?'))
{
pos_T end_pos;
+#ifdef FEAT_RELTIME
+ proftime_T tm;
+#endif
/* if there is a character waiting, search and redraw later */
if (char_avail())
@@ -1727,8 +1730,18 @@ cmdline_changed:
cursor_off(); /* so the user knows we're busy */
out_flush();
++emsg_off; /* So it doesn't beep if bad expr */
+#ifdef FEAT_RELTIME
+ /* Set the time limit to half a second. */
+ profile_setlimit(500L, &tm);
+#endif
i = do_search(NULL, firstc, ccline.cmdbuff, count,
- SEARCH_KEEP + SEARCH_OPT + SEARCH_NOOF + SEARCH_PEEK);
+ SEARCH_KEEP + SEARCH_OPT + SEARCH_NOOF + SEARCH_PEEK,
+#ifdef FEAT_RELTIME
+ &tm
+#else
+ NULL
+#endif
+ );
--emsg_off;
/* if interrupted while searching, behave like it failed */
if (got_int)