Mercurial > vim
comparison src/quickfix.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 | 08f4dc2ba716 |
children | d4baa35fea5d |
comparison
equal
deleted
inserted
replaced
19474:3e0b71dd3dc5 | 19475:5512aa74cb62 |
---|---|
3195 pos_T save_cursor; | 3195 pos_T save_cursor; |
3196 | 3196 |
3197 // Move the cursor to the first line in the buffer | 3197 // Move the cursor to the first line in the buffer |
3198 save_cursor = curwin->w_cursor; | 3198 save_cursor = curwin->w_cursor; |
3199 curwin->w_cursor.lnum = 0; | 3199 curwin->w_cursor.lnum = 0; |
3200 if (!do_search(NULL, '/', qf_pattern, (long)1, SEARCH_KEEP, NULL)) | 3200 if (!do_search(NULL, '/', '/', qf_pattern, (long)1, SEARCH_KEEP, NULL)) |
3201 curwin->w_cursor = save_cursor; | 3201 curwin->w_cursor = save_cursor; |
3202 } | 3202 } |
3203 } | 3203 } |
3204 | 3204 |
3205 /* | 3205 /* |