Mercurial > vim
comparison src/ex_docmd.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 | 82390bf72374 |
children | 378f9f8e6d8f |
comparison
equal
deleted
inserted
replaced
13791:3c843dbf1c91 | 13792:0e9b2971d7c3 |
---|---|
12191 else | 12191 else |
12192 #endif | 12192 #endif |
12193 (void)do_set(eap->arg, flags); | 12193 (void)do_set(eap->arg, flags); |
12194 } | 12194 } |
12195 | 12195 |
12196 #ifdef FEAT_SEARCH_EXTRA | 12196 #if defined(FEAT_SEARCH_EXTRA) || defined(PROTO) |
12197 void | |
12198 set_no_hlsearch(int flag) | |
12199 { | |
12200 no_hlsearch = flag; | |
12201 # ifdef FEAT_EVAL | |
12202 set_vim_var_nr(VV_HLSEARCH, !no_hlsearch && p_hls); | |
12203 # endif | |
12204 } | |
12205 | |
12197 /* | 12206 /* |
12198 * ":nohlsearch" | 12207 * ":nohlsearch" |
12199 */ | 12208 */ |
12200 static void | 12209 static void |
12201 ex_nohlsearch(exarg_T *eap UNUSED) | 12210 ex_nohlsearch(exarg_T *eap UNUSED) |
12202 { | 12211 { |
12203 SET_NO_HLSEARCH(TRUE); | 12212 set_no_hlsearch(TRUE); |
12204 redraw_all_later(SOME_VALID); | 12213 redraw_all_later(SOME_VALID); |
12205 } | 12214 } |
12206 | 12215 |
12207 /* | 12216 /* |
12208 * ":[N]match {group} {pattern}" | 12217 * ":[N]match {group} {pattern}" |