|
|
22c937 |
To: vim_dev@googlegroups.com
|
|
|
22c937 |
Subject: Patch 7.4.578
|
|
|
22c937 |
Fcc: outbox
|
|
|
22c937 |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
|
22c937 |
Mime-Version: 1.0
|
|
|
22c937 |
Content-Type: text/plain; charset=UTF-8
|
|
|
22c937 |
Content-Transfer-Encoding: 8bit
|
|
|
22c937 |
------------
|
|
|
22c937 |
|
|
|
22c937 |
Patch 7.4.578
|
|
|
22c937 |
Problem: Using getcurpos() after "$" in an empty line returns a negative
|
|
|
22c937 |
number.
|
|
|
22c937 |
Solution: Don't add one when this would overflow. (Hirohito Higashi)
|
|
|
22c937 |
Files: src/eval.c
|
|
|
22c937 |
|
|
|
22c937 |
|
|
|
22c937 |
*** ../vim-7.4.577/src/eval.c 2015-01-14 17:14:57.351424263 +0100
|
|
|
22c937 |
--- src/eval.c 2015-01-14 18:55:46.945664363 +0100
|
|
|
22c937 |
***************
|
|
|
22c937 |
*** 11941,11947 ****
|
|
|
22c937 |
#endif
|
|
|
22c937 |
(varnumber_T)0);
|
|
|
22c937 |
if (getcurpos)
|
|
|
22c937 |
! list_append_number(l, (varnumber_T)curwin->w_curswant + 1);
|
|
|
22c937 |
}
|
|
|
22c937 |
else
|
|
|
22c937 |
rettv->vval.v_number = FALSE;
|
|
|
22c937 |
--- 11941,11948 ----
|
|
|
22c937 |
#endif
|
|
|
22c937 |
(varnumber_T)0);
|
|
|
22c937 |
if (getcurpos)
|
|
|
22c937 |
! list_append_number(l, curwin->w_curswant == MAXCOL ?
|
|
|
22c937 |
! (varnumber_T)MAXCOL : (varnumber_T)curwin->w_curswant + 1);
|
|
|
22c937 |
}
|
|
|
22c937 |
else
|
|
|
22c937 |
rettv->vval.v_number = FALSE;
|
|
|
22c937 |
*** ../vim-7.4.577/src/version.c 2015-01-14 18:40:23.087769463 +0100
|
|
|
22c937 |
--- src/version.c 2015-01-14 18:54:47.734312885 +0100
|
|
|
22c937 |
***************
|
|
|
22c937 |
*** 743,744 ****
|
|
|
22c937 |
--- 743,746 ----
|
|
|
22c937 |
{ /* Add new patch number below this line */
|
|
|
22c937 |
+ /**/
|
|
|
22c937 |
+ 578,
|
|
|
22c937 |
/**/
|
|
|
22c937 |
|
|
|
22c937 |
--
|
|
|
22c937 |
From "know your smileys":
|
|
|
22c937 |
~#:-( I just washed my hair, and I can't do nuthin' with it.
|
|
|
22c937 |
|
|
|
22c937 |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
|
22c937 |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
|
22c937 |
\\\ an exciting new programming language -- http://www.Zimbu.org ///
|
|
|
22c937 |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|