diff --git a/src/spell.c b/src/spell.c index ef06ab3e0..1f4c60ed8 100644 --- a/src/spell.c +++ b/src/spell.c @@ -3942,13 +3942,10 @@ spell_dump_compl( } } - if (do_region && region_names != NULL) + if (do_region && region_names != NULL && pat == NULL) { - if (pat == NULL) - { - vim_snprintf((char *)IObuff, IOSIZE, "/regions=%s", region_names); - ml_append(lnum++, IObuff, (colnr_T)0, FALSE); - } + vim_snprintf((char *)IObuff, IOSIZE, "/regions=%s", region_names); + ml_append(lnum++, IObuff, (colnr_T)0, FALSE); } else do_region = FALSE; diff --git a/src/testdir/test_spell.vim b/src/testdir/test_spell.vim index 3f7b028bc..9eecb1e3f 100644 --- a/src/testdir/test_spell.vim +++ b/src/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\\\", '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& diff --git a/src/version.c b/src/version.c index d5d18556a..a1cda69cb 100644 --- a/src/version.c +++ b/src/version.c @@ -695,6 +695,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 1718, /**/ 1717, /**/