diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-02-21 21:30:52 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-02-21 21:30:52 +0100 |
commit | c036e87bd7001238ab7cc5d9e30e59bbf989a5fd (patch) | |
tree | 2ed9e85172f565706463cee71e7ad6a93637297a /src/spell.c | |
parent | 5b1c8fe3d588ab450d4646a0088db4efda88200a (diff) | |
download | vim-git-c036e87bd7001238ab7cc5d9e30e59bbf989a5fd.tar.gz |
patch 8.2.0295: highlighting for :s wrong when using different separatorv8.2.0295
Problem: Highlighting for :s wrong when using different separator.
Solution: Use separat argument for search direction and separator. (Rob
Pilling, closes #5665)
Diffstat (limited to 'src/spell.c')
-rw-r--r-- | src/spell.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/spell.c b/src/spell.c index 87c8f8a48..5fdcc3ada 100644 --- a/src/spell.c +++ b/src/spell.c @@ -2861,7 +2861,7 @@ ex_spellrepall(exarg_T *eap UNUSED) curwin->w_cursor.lnum = 0; while (!got_int) { - if (do_search(NULL, '/', frompat, 1L, SEARCH_KEEP, NULL) == 0 + if (do_search(NULL, '/', '/', frompat, 1L, SEARCH_KEEP, NULL) == 0 || u_save_cursor() == FAIL) break; |