diff options
author | Bram Moolenaar <Bram@vim.org> | 2018-04-27 22:53:07 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2018-04-27 22:53:07 +0200 |
commit | 451fc7b954906069f1830a8092ad85616049a828 (patch) | |
tree | 5d39c1b58d958de9a81c08805b3c0673415d22c8 /src/ex_getln.c | |
parent | 9d34d90210ba52ebaf45973282e5921f5af364c7 (diff) |
patch 8.0.1768: SET_NO_HLSEARCH() used in a wrong wayv8.0.1768
Problem: SET_NO_HLSEARCH() used in a wrong way.
Solution: Make it a function. (suggested by Dominique Pelle,
closes #2850)
Diffstat (limited to 'src/ex_getln.c')
-rw-r--r-- | src/ex_getln.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ex_getln.c b/src/ex_getln.c index 5a1bdc0ea7..ef8b4bdac6 100644 --- a/src/ex_getln.c +++ b/src/ex_getln.c @@ -1976,7 +1976,7 @@ cmdline_changed: if (ccline.cmdlen == 0) { i = 0; - SET_NO_HLSEARCH(TRUE); /* turn off previous highlight */ + set_no_hlsearch(TRUE); /* turn off previous highlight */ redraw_all_later(SOME_VALID); } else @@ -2045,7 +2045,7 @@ cmdline_changed: /* Disable 'hlsearch' highlighting if the pattern matches * everything. Avoids a flash when typing "foo\|". */ if (empty_pattern(ccline.cmdbuff)) - SET_NO_HLSEARCH(TRUE); + set_no_hlsearch(TRUE); validate_cursor(); /* May redraw the status line to show the cursor position. */ |