mirror of
https://github.com/zoriya/vim.git
synced 2026-06-07 05:26:26 +00:00
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)
This commit is contained in:
+11
-1
@@ -15569,11 +15569,21 @@ ex_spellinfo(eap)
|
|||||||
ex_spelldump(eap)
|
ex_spelldump(eap)
|
||||||
exarg_T *eap;
|
exarg_T *eap;
|
||||||
{
|
{
|
||||||
|
char_u *spl;
|
||||||
|
long dummy;
|
||||||
|
|
||||||
if (no_spell_checking(curwin))
|
if (no_spell_checking(curwin))
|
||||||
return;
|
return;
|
||||||
|
get_option_value((char_u*)"spl", &dummy, &spl, OPT_LOCAL);
|
||||||
|
|
||||||
/* Create a new empty buffer by splitting the window. */
|
/* Create a new empty buffer in a new window. */
|
||||||
do_cmdline_cmd((char_u *)"new");
|
do_cmdline_cmd((char_u *)"new");
|
||||||
|
|
||||||
|
/* enable spelling locally in the new window */
|
||||||
|
set_option_value((char_u*)"spell", TRUE, (char_u*)"", OPT_LOCAL);
|
||||||
|
set_option_value((char_u*)"spl", dummy, spl, OPT_LOCAL);
|
||||||
|
vim_free(spl);
|
||||||
|
|
||||||
if (!bufempty() || !buf_valid(curbuf))
|
if (!bufempty() || !buf_valid(curbuf))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
|||||||
@@ -738,6 +738,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
42,
|
||||||
/**/
|
/**/
|
||||||
41,
|
41,
|
||||||
/**/
|
/**/
|
||||||
|
|||||||
Reference in New Issue
Block a user