diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2019-03-08 13:21:11 +0100 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2019-03-08 13:21:11 +0100 |
commit | 4352d41db0d93ab9266c64be48eda872cb5ea589 (patch) | |
tree | a10aa3db77c6db9c7c809200569a9bdd15119f92 /src/nvim/spell.c | |
parent | 0355c1ed9c481d4ad3bf24887e0af869834e1b40 (diff) | |
parent | 96e2c3945f13453070894c70c74e4da29d421dab (diff) | |
download | rneovim-4352d41db0d93ab9266c64be48eda872cb5ea589.tar.gz rneovim-4352d41db0d93ab9266c64be48eda872cb5ea589.tar.bz2 rneovim-4352d41db0d93ab9266c64be48eda872cb5ea589.zip |
Merge #9662 'vim-patch:8.0.{0643-0646}'
Diffstat (limited to 'src/nvim/spell.c')
-rw-r--r-- | src/nvim/spell.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/nvim/spell.c b/src/nvim/spell.c index ff61c2e5de..ec4da88ea1 100644 --- a/src/nvim/spell.c +++ b/src/nvim/spell.c @@ -3048,9 +3048,10 @@ void ex_spellrepall(exarg_T *eap) sub_nlines = 0; curwin->w_cursor.lnum = 0; while (!got_int) { - if (do_search(NULL, '/', frompat, 1L, SEARCH_KEEP, NULL) == 0 - || u_save_cursor() == FAIL) + if (do_search(NULL, '/', frompat, 1L, SEARCH_KEEP, NULL, NULL) == 0 + || u_save_cursor() == FAIL) { break; + } // Only replace when the right word isn't there yet. This happens // when changing "etc" to "etc.". |