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