Skip to content

Commit 877a51d

Browse files
committed
updated for version 7.4.042
Problem: When using ":setlocal" for 'spell' and 'spellang' then :spelldump doesn't work. (Dimitar Dimitrov) Solution: Copy the option variables to the new window used to show the dump. (Christian Brabandt)
1 parent 53aae03 commit 877a51d

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

src/spell.c

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15569,11 +15569,21 @@ ex_spellinfo(eap)
1556915569
ex_spelldump(eap)
1557015570
exarg_T *eap;
1557115571
{
15572+
char_u *spl;
15573+
long dummy;
15574+
1557215575
if (no_spell_checking(curwin))
1557315576
return;
15577+
get_option_value((char_u*)"spl", &dummy, &spl, OPT_LOCAL);
1557415578

15575-
/* Create a new empty buffer by splitting the window. */
15579+
/* Create a new empty buffer in a new window. */
1557615580
do_cmdline_cmd((char_u *)"new");
15581+
15582+
/* enable spelling locally in the new window */
15583+
set_option_value((char_u*)"spell", TRUE, (char_u*)"", OPT_LOCAL);
15584+
set_option_value((char_u*)"spl", dummy, spl, OPT_LOCAL);
15585+
vim_free(spl);
15586+
1557715587
if (!bufempty() || !buf_valid(curbuf))
1557815588
return;
1557915589

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -738,6 +738,8 @@ static char *(features[]) =
738738

739739
static int included_patches[] =
740740
{ /* Add new patch number below this line */
741+
/**/
742+
42,
741743
/**/
742744
41,
743745
/**/

0 commit comments

Comments
 (0)