aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/nvim/spell.c8
-rw-r--r--test/old/testdir/test_spell.vim3
2 files changed, 4 insertions, 7 deletions
diff --git a/src/nvim/spell.c b/src/nvim/spell.c
index ce0d0dd5de..6725674ca7 100644
--- a/src/nvim/spell.c
+++ b/src/nvim/spell.c
@@ -3260,11 +3260,9 @@ void spell_dump_compl(char *pat, int ic, Direction *dir, int dumpflags_arg)
}
}
- if (do_region && region_names != NULL) {
- if (pat == NULL) {
- vim_snprintf(IObuff, IOSIZE, "/regions=%s", region_names);
- ml_append(lnum++, IObuff, (colnr_T)0, false);
- }
+ if (do_region && region_names != NULL && pat == NULL) {
+ vim_snprintf(IObuff, IOSIZE, "/regions=%s", region_names);
+ ml_append(lnum++, IObuff, (colnr_T)0, false);
} else {
do_region = false;
}
diff --git a/test/old/testdir/test_spell.vim b/test/old/testdir/test_spell.vim
index 7576e57c3f..93a69dbd1d 100644
--- a/test/old/testdir/test_spell.vim
+++ b/test/old/testdir/test_spell.vim
@@ -274,8 +274,7 @@ func Test_compl_with_CTRL_X_CTRL_K_using_spell()
call assert_equal(['theater'], getline(1, '$'))
set spelllang=en_gb
call feedkeys("Stheat\<c-x>\<c-k>\<esc>", 'tnx')
- " FIXME: commented out, expected theatre bug got theater. See issue #7025.
- " call assert_equal(['theatre'], getline(1, '$'))
+ call assert_equal(['theatre'], getline(1, '$'))
bwipe!
set spell& spelllang& dictionary& ignorecase&