|
|
3ef2ca |
To: vim_dev@googlegroups.com
|
|
|
3ef2ca |
Subject: Patch 7.4.491
|
|
|
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.491
|
|
|
3ef2ca |
Problem: When winrestview() has a negative "topline" value there are
|
|
|
3ef2ca |
display errors.
|
|
|
3ef2ca |
Solution: Correct a negative value to 1. (Hirohito Higashi)
|
|
|
3ef2ca |
Files: src/eval.c
|
|
|
3ef2ca |
|
|
|
3ef2ca |
|
|
|
3ef2ca |
*** ../vim-7.4.490/src/eval.c 2014-09-19 20:45:19.266454650 +0200
|
|
|
3ef2ca |
--- src/eval.c 2014-10-31 15:43:55.811056060 +0100
|
|
|
3ef2ca |
***************
|
|
|
3ef2ca |
*** 19576,19582 ****
|
|
|
3ef2ca |
# endif
|
|
|
3ef2ca |
changed_window_setting();
|
|
|
3ef2ca |
|
|
|
3ef2ca |
! if (curwin->w_topline == 0)
|
|
|
3ef2ca |
curwin->w_topline = 1;
|
|
|
3ef2ca |
if (curwin->w_topline > curbuf->b_ml.ml_line_count)
|
|
|
3ef2ca |
curwin->w_topline = curbuf->b_ml.ml_line_count;
|
|
|
3ef2ca |
--- 19576,19582 ----
|
|
|
3ef2ca |
# endif
|
|
|
3ef2ca |
changed_window_setting();
|
|
|
3ef2ca |
|
|
|
3ef2ca |
! if (curwin->w_topline <= 0)
|
|
|
3ef2ca |
curwin->w_topline = 1;
|
|
|
3ef2ca |
if (curwin->w_topline > curbuf->b_ml.ml_line_count)
|
|
|
3ef2ca |
curwin->w_topline = curbuf->b_ml.ml_line_count;
|
|
|
3ef2ca |
*** ../vim-7.4.490/src/version.c 2014-10-31 13:54:21.843214469 +0100
|
|
|
3ef2ca |
--- src/version.c 2014-10-31 15:44:59.555054524 +0100
|
|
|
3ef2ca |
***************
|
|
|
3ef2ca |
*** 743,744 ****
|
|
|
3ef2ca |
--- 743,746 ----
|
|
|
3ef2ca |
{ /* Add new patch number below this line */
|
|
|
3ef2ca |
+ /**/
|
|
|
3ef2ca |
+ 491,
|
|
|
3ef2ca |
/**/
|
|
|
3ef2ca |
|
|
|
3ef2ca |
--
|
|
|
3ef2ca |
GUARD #2: Wait a minute -- supposing two swallows carried it together?
|
|
|
3ef2ca |
GUARD #1: No, they'd have to have it on a line.
|
|
|
3ef2ca |
GUARD #2: Well, simple! They'd just use a standard creeper!
|
|
|
3ef2ca |
GUARD #1: What, held under the dorsal guiding feathers?
|
|
|
3ef2ca |
GUARD #2: Well, why not?
|
|
|
3ef2ca |
The Quest for the Holy Grail (Monty Python)
|
|
|
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 ///
|