Mercurial > vim
comparison src/ex_docmd.c @ 19475:5512aa74cb62 v8.2.0295
patch 8.2.0295: highlighting for :s wrong when using different separator
Commit: https://github.com/vim/vim/commit/c036e87bd7001238ab7cc5d9e30e59bbf989a5fd
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Feb 21 21:30:52 2020 +0100
patch 8.2.0295: highlighting for :s wrong when using different separator
Problem: Highlighting for :s wrong when using different separator.
Solution: Use separat argument for search direction and separator. (Rob
Pilling, closes #5665)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 21 Feb 2020 21:45:04 +0100 |
parents | af9d5585cfbf |
children | c27837cbe922 |
comparison
equal
deleted
inserted
replaced
19474:3e0b71dd3dc5 | 19475:5512aa74cb62 |
---|---|
3669 curwin->w_cursor.col = MAXCOL; | 3669 curwin->w_cursor.col = MAXCOL; |
3670 else | 3670 else |
3671 curwin->w_cursor.col = 0; | 3671 curwin->w_cursor.col = 0; |
3672 searchcmdlen = 0; | 3672 searchcmdlen = 0; |
3673 flags = silent ? 0 : SEARCH_HIS | SEARCH_MSG; | 3673 flags = silent ? 0 : SEARCH_HIS | SEARCH_MSG; |
3674 if (!do_search(NULL, c, cmd, 1L, flags, NULL)) | 3674 if (!do_search(NULL, c, c, cmd, 1L, flags, NULL)) |
3675 { | 3675 { |
3676 curwin->w_cursor = pos; | 3676 curwin->w_cursor = pos; |
3677 cmd = NULL; | 3677 cmd = NULL; |
3678 goto error; | 3678 goto error; |
3679 } | 3679 } |