diff options
author | Ghjuvan Lacambre <code@lacamb.re> | 2021-04-04 20:43:22 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-04 14:43:22 -0400 |
commit | 0f187700ab1437e949f03d6915df7c76f8287304 (patch) | |
tree | 235da971e8133a11ad3b3aa3ef077370564521ea /src/nvim/ex_docmd.c | |
parent | 76f5c72860b237d66c949dcdeb6967047810b956 (diff) | |
download | rneovim-0f187700ab1437e949f03d6915df7c76f8287304.tar.gz rneovim-0f187700ab1437e949f03d6915df7c76f8287304.tar.bz2 rneovim-0f187700ab1437e949f03d6915df7c76f8287304.zip |
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
Diffstat (limited to 'src/nvim/ex_docmd.c')
-rw-r--r-- | src/nvim/ex_docmd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/ex_docmd.c b/src/nvim/ex_docmd.c index 3aaf171b2c..d1eddfc74f 100644 --- a/src/nvim/ex_docmd.c +++ b/src/nvim/ex_docmd.c @@ -3928,7 +3928,7 @@ static linenr_T get_address(exarg_T *eap, } searchcmdlen = 0; flags = silent ? 0 : SEARCH_HIS | SEARCH_MSG; - if (!do_search(NULL, c, cmd, 1L, flags, NULL)) { + if (!do_search(NULL, c, c, cmd, 1L, flags, NULL)) { curwin->w_cursor = pos; cmd = NULL; goto error; |