comparison src/screen.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 57da3d873f20
children 3edac4cd1c0a
comparison
equal deleted inserted replaced
13791:3c843dbf1c91 13792:0e9b2971d7c3
7943 /* Error while handling regexp: stop using this regexp. */ 7943 /* Error while handling regexp: stop using this regexp. */
7944 if (shl == &search_hl) 7944 if (shl == &search_hl)
7945 { 7945 {
7946 /* don't free regprog in the match list, it's a copy */ 7946 /* don't free regprog in the match list, it's a copy */
7947 vim_regfree(shl->rm.regprog); 7947 vim_regfree(shl->rm.regprog);
7948 SET_NO_HLSEARCH(TRUE); 7948 set_no_hlsearch(TRUE);
7949 } 7949 }
7950 shl->rm.regprog = NULL; 7950 shl->rm.regprog = NULL;
7951 shl->lnum = 0; 7951 shl->lnum = 0;
7952 got_int = FALSE; /* avoid the "Type :quit to exit Vim" 7952 got_int = FALSE; /* avoid the "Type :quit to exit Vim"
7953 message */ 7953 message */