Patch 7.3.1270
Problem:    Using "Vp" in an empty buffer can't be undone. (Hauke Petersen)
Solution:   Save one line in an empty buffer. (Christian Brabandt)
Files:      src/ops.c


*** ../vim-7.3.1269/src/ops.c   2013-05-06 04:21:35.000000000 +0200
--- src/ops.c   2013-06-29 17:14:19.000000000 +0200
***************
*** 3497,3503 ****
  #endif
        if (dir == FORWARD)
            ++lnum;
!       if (u_save(lnum - 1, lnum) == FAIL)
            goto end;
  #ifdef FEAT_FOLDING
        if (dir == FORWARD)
--- 3497,3505 ----
  #endif
        if (dir == FORWARD)
            ++lnum;
!       /* In an empty buffer the empty line is going to be replaced, include
!        * it in the saved lines. */
!       if ((bufempty() ? u_save(0, 1) : u_save(lnum - 1, lnum)) == FAIL)
            goto end;
  #ifdef FEAT_FOLDING
        if (dir == FORWARD)
*** ../vim-7.3.1269/src/version.c       2013-06-29 16:21:50.000000000 +0200
--- src/version.c       2013-06-29 17:18:36.000000000 +0200
***************
*** 730,731 ****
--- 730,733 ----
  {   /* Add new patch number below this line */
+ /**/
+     1270,
  /**/

-- 
ARTHUR:  Well, I can't just call you `Man'.
DENNIS:  Well, you could say `Dennis'.
ARTHUR:  Well, I didn't know you were called `Dennis.'
DENNIS:  Well, you didn't bother to find out, did you?
                                  The Quest for the Holy Grail (Monty Python)

 /// 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/groups/opt_out.


Raspunde prin e-mail lui