comparison src/ex_getln.c @ 13792:0e9b2971d7c3 v8.0.1768

patch 8.0.1768: SET_NO_HLSEARCH() used in a wrong way commit https://github.com/vim/vim/commit/451fc7b954906069f1830a8092ad85616049a828 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Apr 27 22:53:07 2018 +0200 patch 8.0.1768: SET_NO_HLSEARCH() used in a wrong way Problem: SET_NO_HLSEARCH() used in a wrong way. Solution: Make it a function. (suggested by Dominique Pelle, closes #2850)
author Christian Brabandt <cb@256bit.org>
date Fri, 27 Apr 2018 23:00:07 +0200
parents dd6a63e3e7c4
children 530a6b894ae2
comparison
equal deleted inserted replaced
13791:3c843dbf1c91 13792:0e9b2971d7c3
1974 1974
1975 /* If there is no command line, don't do anything */ 1975 /* If there is no command line, don't do anything */
1976 if (ccline.cmdlen == 0) 1976 if (ccline.cmdlen == 0)
1977 { 1977 {
1978 i = 0; 1978 i = 0;
1979 SET_NO_HLSEARCH(TRUE); /* turn off previous highlight */ 1979 set_no_hlsearch(TRUE); /* turn off previous highlight */
1980 redraw_all_later(SOME_VALID); 1980 redraw_all_later(SOME_VALID);
1981 } 1981 }
1982 else 1982 else
1983 { 1983 {
1984 int search_flags = SEARCH_OPT + SEARCH_NOOF + SEARCH_PEEK; 1984 int search_flags = SEARCH_OPT + SEARCH_NOOF + SEARCH_PEEK;
2043 end_pos = curwin->w_cursor; /* shutup gcc 4 */ 2043 end_pos = curwin->w_cursor; /* shutup gcc 4 */
2044 2044
2045 /* Disable 'hlsearch' highlighting if the pattern matches 2045 /* Disable 'hlsearch' highlighting if the pattern matches
2046 * everything. Avoids a flash when typing "foo\|". */ 2046 * everything. Avoids a flash when typing "foo\|". */
2047 if (empty_pattern(ccline.cmdbuff)) 2047 if (empty_pattern(ccline.cmdbuff))
2048 SET_NO_HLSEARCH(TRUE); 2048 set_no_hlsearch(TRUE);
2049 2049
2050 validate_cursor(); 2050 validate_cursor();
2051 /* May redraw the status line to show the cursor position. */ 2051 /* May redraw the status line to show the cursor position. */
2052 if (p_ru && curwin->w_status_height > 0) 2052 if (p_ru && curwin->w_status_height > 0)
2053 curwin->w_redr_status = TRUE; 2053 curwin->w_redr_status = TRUE;