astepano / rpms / vim

Forked from rpms/vim 6 years ago
Clone
2286ac6
To: vim_dev@googlegroups.com
2286ac6
Subject: Patch 7.4.699
2286ac6
Fcc: outbox
2286ac6
From: Bram Moolenaar <Bram@moolenaar.net>
2286ac6
Mime-Version: 1.0
2286ac6
Content-Type: text/plain; charset=UTF-8
2286ac6
Content-Transfer-Encoding: 8bit
2286ac6
------------
2286ac6
2286ac6
Patch 7.4.699
2286ac6
Problem:    E315 when trying to delete a fold. (Yutao Yuan)
2286ac6
Solution:   Make sure the fold doesn't go beyond the last buffer line.
2286ac6
            (Christian Brabandt)
2286ac6
Files:      src/fold.c
2286ac6
2286ac6
2286ac6
*** ../vim-7.4.698/src/fold.c	2014-03-23 15:12:29.919264336 +0100
2286ac6
--- src/fold.c	2015-04-13 20:45:56.777041310 +0200
2286ac6
***************
2286ac6
*** 234,239 ****
2286ac6
--- 234,241 ----
2286ac6
  	return FALSE;
2286ac6
      }
2286ac6
  
2286ac6
+     if (last > win->w_buffer->b_ml.ml_line_count)
2286ac6
+ 	last = win->w_buffer->b_ml.ml_line_count;
2286ac6
      if (lastp != NULL)
2286ac6
  	*lastp = last;
2286ac6
      if (firstp != NULL)
2286ac6
*** ../vim-7.4.698/src/version.c	2015-04-13 16:16:31.225091428 +0200
2286ac6
--- src/version.c	2015-04-13 20:47:35.267993635 +0200
2286ac6
***************
2286ac6
*** 743,744 ****
2286ac6
--- 743,746 ----
2286ac6
  {   /* Add new patch number below this line */
2286ac6
+ /**/
2286ac6
+     699,
2286ac6
  /**/
2286ac6
2286ac6
-- 
2286ac6
It might look like I'm doing nothing, but at the cellular level
2286ac6
I'm really quite busy.
2286ac6
2286ac6
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
2286ac6
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
2286ac6
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
2286ac6
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///