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