aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/ex_getln.c
diff options
context:
space:
mode:
authorJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2019-09-02 15:56:29 -0400
committerJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2019-09-02 18:40:56 -0400
commit07b209b1fec19d4e8d7e5390c664d582d6a3145c (patch)
tree3236faae42a071f619a24137e6be6b56734189d4 /src/nvim/ex_getln.c
parent6434a0bf99d1733a295844813db201d533e65883 (diff)
downloadrneovim-07b209b1fec19d4e8d7e5390c664d582d6a3145c.tar.gz
rneovim-07b209b1fec19d4e8d7e5390c664d582d6a3145c.tar.bz2
rneovim-07b209b1fec19d4e8d7e5390c664d582d6a3145c.zip
vim-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 vim/vim#2850) https://github.com/vim/vim/commit/451fc7b954906069f1830a8092ad85616049a828
Diffstat (limited to 'src/nvim/ex_getln.c')
-rw-r--r--src/nvim/ex_getln.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/ex_getln.c b/src/nvim/ex_getln.c
index 4f35555098..f00367d9ca 100644
--- a/src/nvim/ex_getln.c
+++ b/src/nvim/ex_getln.c
@@ -1830,7 +1830,7 @@ static int command_line_changed(CommandLineState *s)
// If there is no command line, don't do anything
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 {
int search_flags = SEARCH_OPT + SEARCH_NOOF + SEARCH_PEEK;
@@ -1888,7 +1888,7 @@ static int command_line_changed(CommandLineState *s)
// 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();