From 0f187700ab1437e949f03d6915df7c76f8287304 Mon Sep 17 00:00:00 2001 From: Ghjuvan Lacambre Date: Sun, 4 Apr 2021 20:43:22 +0200 Subject: vim-patch:8.2.0295: highlighting for :s wrong when using different separator (#14286) Problem: Highlighting for :s wrong when using different separator. Solution: Use separat argument for search direction and separator. (Rob Pilling, closes vim/vim#5665) https://github.com/vim/vim/commit/c036e87bd7001238ab7cc5d9e30e59bbf989a5fd --- src/nvim/normal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/nvim/normal.c') diff --git a/src/nvim/normal.c b/src/nvim/normal.c index 3587b12277..3b40689f3e 100644 --- a/src/nvim/normal.c +++ b/src/nvim/normal.c @@ -5459,7 +5459,7 @@ static int normal_search( curwin->w_set_curswant = true; memset(&sia, 0, sizeof(sia)); - i = do_search(cap->oap, dir, pat, cap->count1, + i = do_search(cap->oap, dir, dir, pat, cap->count1, opt | SEARCH_OPT | SEARCH_ECHO | SEARCH_MSG, &sia); if (wrapped != NULL) { *wrapped = sia.sa_wrapped; -- cgit