jkunstle / rpms / vim

Forked from rpms/vim 3 years ago
Clone

Blame SOURCES/7.4.042

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