Mercurial > vim
comparison src/spell.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 | 2ef19eed524a |
children | 435726a03481 |
comparison
equal
deleted
inserted
replaced
19474:3e0b71dd3dc5 | 19475:5512aa74cb62 |
---|---|
2859 sub_nsubs = 0; | 2859 sub_nsubs = 0; |
2860 sub_nlines = 0; | 2860 sub_nlines = 0; |
2861 curwin->w_cursor.lnum = 0; | 2861 curwin->w_cursor.lnum = 0; |
2862 while (!got_int) | 2862 while (!got_int) |
2863 { | 2863 { |
2864 if (do_search(NULL, '/', frompat, 1L, SEARCH_KEEP, NULL) == 0 | 2864 if (do_search(NULL, '/', '/', frompat, 1L, SEARCH_KEEP, NULL) == 0 |
2865 || u_save_cursor() == FAIL) | 2865 || u_save_cursor() == FAIL) |
2866 break; | 2866 break; |
2867 | 2867 |
2868 // Only replace when the right word isn't there yet. This happens | 2868 // Only replace when the right word isn't there yet. This happens |
2869 // when changing "etc" to "etc.". | 2869 // when changing "etc" to "etc.". |