|
|
22c937 |
To: vim_dev@googlegroups.com
|
|
|
22c937 |
Subject: Patch 7.4.042
|
|
|
22c937 |
Fcc: outbox
|
|
|
22c937 |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
|
22c937 |
Mime-Version: 1.0
|
|
|
22c937 |
Content-Type: text/plain; charset=UTF-8
|
|
|
22c937 |
Content-Transfer-Encoding: 8bit
|
|
|
22c937 |
------------
|
|
|
22c937 |
|
|
|
22c937 |
Patch 7.4.042
|
|
|
22c937 |
Problem: When using ":setlocal" for 'spell' and 'spellang' then :spelldump
|
|
|
22c937 |
doesn't work. (Dimitar Dimitrov)
|
|
|
22c937 |
Solution: Copy the option variables to the new window used to show the dump.
|
|
|
22c937 |
(Christian Brabandt)
|
|
|
22c937 |
Files: src/spell.c
|
|
|
22c937 |
|
|
|
22c937 |
|
|
|
22c937 |
*** ../vim-7.4.041/src/spell.c 2013-09-25 18:54:20.000000000 +0200
|
|
|
22c937 |
--- src/spell.c 2013-09-29 13:15:51.000000000 +0200
|
|
|
22c937 |
***************
|
|
|
22c937 |
*** 15569,15579 ****
|
|
|
22c937 |
ex_spelldump(eap)
|
|
|
22c937 |
exarg_T *eap;
|
|
|
22c937 |
{
|
|
|
22c937 |
if (no_spell_checking(curwin))
|
|
|
22c937 |
return;
|
|
|
22c937 |
|
|
|
22c937 |
! /* Create a new empty buffer by splitting the window. */
|
|
|
22c937 |
do_cmdline_cmd((char_u *)"new");
|
|
|
22c937 |
if (!bufempty() || !buf_valid(curbuf))
|
|
|
22c937 |
return;
|
|
|
22c937 |
|
|
|
22c937 |
--- 15569,15589 ----
|
|
|
22c937 |
ex_spelldump(eap)
|
|
|
22c937 |
exarg_T *eap;
|
|
|
22c937 |
{
|
|
|
22c937 |
+ char_u *spl;
|
|
|
22c937 |
+ long dummy;
|
|
|
22c937 |
+
|
|
|
22c937 |
if (no_spell_checking(curwin))
|
|
|
22c937 |
return;
|
|
|
22c937 |
+ get_option_value((char_u*)"spl", &dummy, &spl, OPT_LOCAL);
|
|
|
22c937 |
|
|
|
22c937 |
! /* Create a new empty buffer in a new window. */
|
|
|
22c937 |
do_cmdline_cmd((char_u *)"new");
|
|
|
22c937 |
+
|
|
|
22c937 |
+ /* enable spelling locally in the new window */
|
|
|
22c937 |
+ set_option_value((char_u*)"spell", TRUE, (char_u*)"", OPT_LOCAL);
|
|
|
22c937 |
+ set_option_value((char_u*)"spl", dummy, spl, OPT_LOCAL);
|
|
|
22c937 |
+ vim_free(spl);
|
|
|
22c937 |
+
|
|
|
22c937 |
if (!bufempty() || !buf_valid(curbuf))
|
|
|
22c937 |
return;
|
|
|
22c937 |
|
|
|
22c937 |
*** ../vim-7.4.041/src/version.c 2013-09-25 23:24:54.000000000 +0200
|
|
|
22c937 |
--- src/version.c 2013-09-29 13:15:17.000000000 +0200
|
|
|
22c937 |
***************
|
|
|
22c937 |
*** 740,741 ****
|
|
|
22c937 |
--- 740,743 ----
|
|
|
22c937 |
{ /* Add new patch number below this line */
|
|
|
22c937 |
+ /**/
|
|
|
22c937 |
+ 42,
|
|
|
22c937 |
/**/
|
|
|
22c937 |
|
|
|
22c937 |
--
|
|
|
22c937 |
Experience is what you get when you don't get what you want.
|
|
|
22c937 |
|
|
|
22c937 |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
|
22c937 |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
|
22c937 |
\\\ an exciting new programming language -- http://www.Zimbu.org ///
|
|
|
22c937 |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|