Skip to content

Instantly share code, notes, and snippets.

@itchyny
Last active August 29, 2015 14:14
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save itchyny/d703754c6e5a2dc9f213 to your computer and use it in GitHub Desktop.
Save itchyny/d703754c6e5a2dc9f213 to your computer and use it in GitHub Desktop.
incsearch-hlall.diff
diff -r cd5eff09c1ae src/ex_getln.c
--- a/src/ex_getln.c Thu Feb 05 20:29:59 2015 +0100
+++ b/src/ex_getln.c Sat Feb 07 02:09:58 2015 +0900
@@ -1778,8 +1778,10 @@
curwin->w_cursor = old_cursor; /* start at old position */
/* If there is no command line, don't do anything */
- if (ccline.cmdlen == 0)
+ if (ccline.cmdlen == 0) {
i = 0;
+ SET_NO_HLSEARCH(TRUE);
+ }
else
{
cursor_off(); /* so the user knows we're busy */
@@ -1790,7 +1792,7 @@
profile_setlimit(500L, &tm);
#endif
i = do_search(NULL, firstc, ccline.cmdbuff, count,
- SEARCH_KEEP + SEARCH_OPT + SEARCH_NOOF + SEARCH_PEEK,
+ SEARCH_OPT + SEARCH_NOOF + SEARCH_PEEK,
#ifdef FEAT_RELTIME
&tm
#else
@itchyny
Copy link
Author

itchyny commented Feb 3, 2015

/test<C-u>でクリアーされないっぽい。 → 解決

@itchyny
Copy link
Author

itchyny commented Feb 3, 2015

だれかオプション'incsearchall'作って。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment