Patch 7.4.578
Problem:    Using getcurpos() after "$" in an empty line returns a negative
            number.
Solution:   Don't add one when this would overflow. (Hirohito Higashi)
Files:      src/eval.c


*** ../vim-7.4.577/src/eval.c   2015-01-14 17:14:57.351424263 +0100
--- src/eval.c  2015-01-14 18:55:46.945664363 +0100
***************
*** 11941,11947 ****
  #endif
                                                              (varnumber_T)0);
        if (getcurpos)
!           list_append_number(l, (varnumber_T)curwin->w_curswant + 1);
      }
      else
        rettv->vval.v_number = FALSE;
--- 11941,11948 ----
  #endif
                                                              (varnumber_T)0);
        if (getcurpos)
!           list_append_number(l, curwin->w_curswant == MAXCOL ?
!                   (varnumber_T)MAXCOL : (varnumber_T)curwin->w_curswant + 1);
      }
      else
        rettv->vval.v_number = FALSE;
*** ../vim-7.4.577/src/version.c        2015-01-14 18:40:23.087769463 +0100
--- src/version.c       2015-01-14 18:54:47.734312885 +0100
***************
*** 743,744 ****
--- 743,746 ----
  {   /* Add new patch number below this line */
+ /**/
+     578,
  /**/

-- 
>From "know your smileys":
 ~#:-(  I just washed my hair, and I can't do nuthin' with it.

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui