81c2858
To: vim-dev@vim.org
81c2858
Subject: Patch 7.2.235
81c2858
Fcc: outbox
81c2858
From: Bram Moolenaar <Bram@moolenaar.net>
81c2858
Mime-Version: 1.0
81c2858
Content-Type: text/plain; charset=UTF-8
81c2858
Content-Transfer-Encoding: 8bit
81c2858
------------
81c2858
81c2858
Patch 7.2.235
81c2858
Problem:    Using CTRL-O z= in Insert mode has a delay before redrawing.
81c2858
Solution:   Reset msg_didout and msg_scroll.
81c2858
Files:	    src/misc1.c, src/spell.c
81c2858
81c2858
81c2858
*** ../vim-7.2.234/src/misc1.c	2009-07-14 21:40:30.000000000 +0200
81c2858
--- src/misc1.c	2009-07-14 15:51:55.000000000 +0200
81c2858
***************
81c2858
*** 3276,3281 ****
81c2858
--- 3276,3282 ----
81c2858
  	cmdline_row = msg_row - 1;
81c2858
  	need_wait_return = FALSE;
81c2858
  	msg_didany = FALSE;
81c2858
+ 	msg_didout = FALSE;
81c2858
      }
81c2858
      else
81c2858
  	cmdline_row = save_cmdline_row;
81c2858
*** ../vim-7.2.234/src/spell.c	2009-05-17 13:30:58.000000000 +0200
81c2858
--- src/spell.c	2009-07-14 15:57:55.000000000 +0200
81c2858
***************
81c2858
*** 10252,10257 ****
81c2858
--- 10252,10258 ----
81c2858
      int		limit;
81c2858
      int		selected = count;
81c2858
      int		badlen = 0;
81c2858
+     int		msg_scroll_save = msg_scroll;
81c2858
  
81c2858
      if (no_spell_checking(curwin))
81c2858
  	return;
81c2858
***************
81c2858
*** 10416,10422 ****
81c2858
  	selected = prompt_for_number(&mouse_used);
81c2858
  	if (mouse_used)
81c2858
  	    selected -= lines_left;
81c2858
! 	lines_left = Rows;	/* avoid more prompt */
81c2858
      }
81c2858
  
81c2858
      if (selected > 0 && selected <= sug.su_ga.ga_len && u_save_cursor() == OK)
81c2858
--- 10417,10425 ----
81c2858
  	selected = prompt_for_number(&mouse_used);
81c2858
  	if (mouse_used)
81c2858
  	    selected -= lines_left;
81c2858
! 	lines_left = Rows;		/* avoid more prompt */
81c2858
! 	/* don't delay for 'smd' in normal_cmd() */
81c2858
! 	msg_scroll = msg_scroll_save;
81c2858
      }
81c2858
  
81c2858
      if (selected > 0 && selected <= sug.su_ga.ga_len && u_save_cursor() == OK)
81c2858
***************
81c2858
*** 10441,10447 ****
81c2858
  	}
81c2858
  
81c2858
  	/* Replace the word. */
81c2858
! 	p = alloc((unsigned)STRLEN(line) - stp->st_orglen + stp->st_wordlen + 1);
81c2858
  	if (p != NULL)
81c2858
  	{
81c2858
  	    c = (int)(sug.su_badptr - line);
81c2858
--- 10444,10451 ----
81c2858
  	}
81c2858
  
81c2858
  	/* Replace the word. */
81c2858
! 	p = alloc((unsigned)STRLEN(line) - stp->st_orglen
81c2858
! 						       + stp->st_wordlen + 1);
81c2858
  	if (p != NULL)
81c2858
  	{
81c2858
  	    c = (int)(sug.su_badptr - line);
81c2858
*** ../vim-7.2.234/src/version.c	2009-07-14 21:40:30.000000000 +0200
81c2858
--- src/version.c	2009-07-22 11:00:34.000000000 +0200
81c2858
***************
81c2858
*** 678,679 ****
81c2858
--- 678,681 ----
81c2858
  {   /* Add new patch number below this line */
81c2858
+ /**/
81c2858
+     235,
81c2858
  /**/
81c2858
81c2858
-- 
81c2858
From "know your smileys":
81c2858
 |-(	Contact lenses, but has lost them
81c2858
81c2858
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
81c2858
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
81c2858
\\\        download, build and distribute -- http://www.A-A-P.org        ///
81c2858
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///