jkunstle / rpms / vim

Forked from rpms/vim 3 years ago
Clone

Blame SOURCES/7.4.277

3ef2ca
To: vim_dev@googlegroups.com
3ef2ca
Subject: Patch 7.4.277
3ef2ca
Fcc: outbox
3ef2ca
From: Bram Moolenaar <Bram@moolenaar.net>
3ef2ca
Mime-Version: 1.0
3ef2ca
Content-Type: text/plain; charset=UTF-8
3ef2ca
Content-Transfer-Encoding: 8bit
3ef2ca
------------
3ef2ca
3ef2ca
Patch 7.4.277
3ef2ca
Problem:    Using ":sign unplace *" may leave the cursor in the wrong position
3ef2ca
	    (Christian Brabandt)
3ef2ca
Solution:   Update the cursor position when removing all signs.
3ef2ca
Files:	    src/buffer.c
3ef2ca
3ef2ca
3ef2ca
*** ../vim-7.4.276/src/buffer.c	2014-04-06 20:45:40.115357453 +0200
3ef2ca
--- src/buffer.c	2014-05-07 16:30:13.117150289 +0200
3ef2ca
***************
3ef2ca
*** 5525,5530 ****
3ef2ca
--- 5525,5534 ----
3ef2ca
      return;
3ef2ca
  }
3ef2ca
  
3ef2ca
+ /*
3ef2ca
+  * For an existing, placed sign "markId" change the type to "typenr".
3ef2ca
+  * Returns the line number of the sign, or zero if the sign is not found.
3ef2ca
+  */
3ef2ca
      linenr_T
3ef2ca
  buf_change_sign_type(buf, markId, typenr)
3ef2ca
      buf_T	*buf;		/* buffer to store sign in */
3ef2ca
***************
3ef2ca
*** 5693,5698 ****
3ef2ca
--- 5697,5710 ----
3ef2ca
  {
3ef2ca
      signlist_T	*next;
3ef2ca
  
3ef2ca
+     /* When deleting the last sign need to redraw the windows to remove the
3ef2ca
+      * sign column. */
3ef2ca
+     if (buf->b_signlist != NULL)
3ef2ca
+     {
3ef2ca
+ 	redraw_buf_later(buf, NOT_VALID);
3ef2ca
+ 	changed_cline_bef_curs();
3ef2ca
+     }
3ef2ca
+ 
3ef2ca
      while (buf->b_signlist != NULL)
3ef2ca
      {
3ef2ca
  	next = buf->b_signlist->next;
3ef2ca
***************
3ef2ca
*** 5711,5721 ****
3ef2ca
  
3ef2ca
      for (buf = firstbuf; buf != NULL; buf = buf->b_next)
3ef2ca
  	if (buf->b_signlist != NULL)
3ef2ca
- 	{
3ef2ca
- 	    /* Need to redraw the windows to remove the sign column. */
3ef2ca
- 	    redraw_buf_later(buf, NOT_VALID);
3ef2ca
  	    buf_delete_signs(buf);
3ef2ca
- 	}
3ef2ca
  }
3ef2ca
  
3ef2ca
  /*
3ef2ca
--- 5723,5729 ----
3ef2ca
*** ../vim-7.4.276/src/version.c	2014-05-07 15:10:17.661108310 +0200
3ef2ca
--- src/version.c	2014-05-07 16:32:06.933151285 +0200
3ef2ca
***************
3ef2ca
*** 736,737 ****
3ef2ca
--- 736,739 ----
3ef2ca
  {   /* Add new patch number below this line */
3ef2ca
+ /**/
3ef2ca
+     277,
3ef2ca
  /**/
3ef2ca
3ef2ca
-- 
3ef2ca
An actual excerpt from a classified section of a city newspaper:
3ef2ca
"Illiterate?  Write today for free help!"
3ef2ca
3ef2ca
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
3ef2ca
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
3ef2ca
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
3ef2ca
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///