Karsten Hopp 5e2064
To: vim_dev@googlegroups.com
Karsten Hopp 5e2064
Subject: Patch 7.3.585
Karsten Hopp 5e2064
Fcc: outbox
Karsten Hopp 5e2064
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp 5e2064
Mime-Version: 1.0
Karsten Hopp 5e2064
Content-Type: text/plain; charset=UTF-8
Karsten Hopp 5e2064
Content-Transfer-Encoding: 8bit
Karsten Hopp 5e2064
------------
Karsten Hopp 5e2064
Karsten Hopp 5e2064
Patch 7.3.585
Karsten Hopp 5e2064
Problem:    Calling changed_bytes() too often.
Karsten Hopp 5e2064
Solution:   Move changed_bytes() out of a loop. (Tor Perkins)
Karsten Hopp 5e2064
Files:	    src/edit.c
Karsten Hopp 5e2064
Karsten Hopp 5e2064
Karsten Hopp 5e2064
*** ../vim-7.3.584/src/edit.c	2012-06-29 15:04:34.000000000 +0200
Karsten Hopp 5e2064
--- src/edit.c	2012-07-06 13:29:25.000000000 +0200
Karsten Hopp 5e2064
***************
Karsten Hopp 5e2064
*** 6350,6359 ****
Karsten Hopp 5e2064
  			 * add the additional whitespace needed after the
Karsten Hopp 5e2064
  			 * comment leader for the numbered list.  */
Karsten Hopp 5e2064
  			for (i = 0; i < padding; i++)
Karsten Hopp 5e2064
- 			{
Karsten Hopp 5e2064
  			    ins_str((char_u *)" ");
Karsten Hopp 5e2064
! 			    changed_bytes(curwin->w_cursor.lnum, leader_len);
Karsten Hopp 5e2064
! 			}
Karsten Hopp 5e2064
  		    }
Karsten Hopp 5e2064
  		    else
Karsten Hopp 5e2064
  		    {
Karsten Hopp 5e2064
--- 6350,6357 ----
Karsten Hopp 5e2064
  			 * add the additional whitespace needed after the
Karsten Hopp 5e2064
  			 * comment leader for the numbered list.  */
Karsten Hopp 5e2064
  			for (i = 0; i < padding; i++)
Karsten Hopp 5e2064
  			    ins_str((char_u *)" ");
Karsten Hopp 5e2064
! 			changed_bytes(curwin->w_cursor.lnum, leader_len);
Karsten Hopp 5e2064
  		    }
Karsten Hopp 5e2064
  		    else
Karsten Hopp 5e2064
  		    {
Karsten Hopp 5e2064
*** ../vim-7.3.584/src/version.c	2012-07-06 13:36:02.000000000 +0200
Karsten Hopp 5e2064
--- src/version.c	2012-07-06 13:35:03.000000000 +0200
Karsten Hopp 5e2064
***************
Karsten Hopp 5e2064
*** 716,717 ****
Karsten Hopp 5e2064
--- 716,719 ----
Karsten Hopp 5e2064
  {   /* Add new patch number below this line */
Karsten Hopp 5e2064
+ /**/
Karsten Hopp 5e2064
+     585,
Karsten Hopp 5e2064
  /**/
Karsten Hopp 5e2064
Karsten Hopp 5e2064
-- 
Karsten Hopp 5e2064
From "know your smileys":
Karsten Hopp 5e2064
 :'-D	Laughing so much that they're crying
Karsten Hopp 5e2064
Karsten Hopp 5e2064
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp 5e2064
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp 5e2064
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
Karsten Hopp 5e2064
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///