|
Karsten Hopp |
ad175d |
To: vim-dev@vim.org
|
|
Karsten Hopp |
ad175d |
Subject: Patch 7.1.286
|
|
Karsten Hopp |
ad175d |
Fcc: outbox
|
|
Karsten Hopp |
ad175d |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
ad175d |
Mime-Version: 1.0
|
|
Karsten Hopp |
ad175d |
Content-Type: text/plain; charset=ISO-8859-1
|
|
Karsten Hopp |
ad175d |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
ad175d |
------------
|
|
Karsten Hopp |
ad175d |
|
|
Karsten Hopp |
ad175d |
Patch 7.1.286 (after 7.1.103)
|
|
Karsten Hopp |
ad175d |
Problem: "w" at the end of the buffer moves the cursor past the end of the
|
|
Karsten Hopp |
ad175d |
line. (Markus Heidelberg)
|
|
Karsten Hopp |
ad175d |
Solution: Move the cursor back from the NUL when it was moved forward.
|
|
Karsten Hopp |
ad175d |
Files: src/normal.c
|
|
Karsten Hopp |
ad175d |
|
|
Karsten Hopp |
ad175d |
|
|
Karsten Hopp |
ad175d |
*** ../vim-7.1.285/src/normal.c Sat Jan 19 15:55:51 2008
|
|
Karsten Hopp |
ad175d |
--- src/normal.c Wed Mar 19 20:33:44 2008
|
|
Karsten Hopp |
ad175d |
***************
|
|
Karsten Hopp |
ad175d |
*** 8345,8350 ****
|
|
Karsten Hopp |
ad175d |
--- 8345,8351 ----
|
|
Karsten Hopp |
ad175d |
int n;
|
|
Karsten Hopp |
ad175d |
int word_end;
|
|
Karsten Hopp |
ad175d |
int flag = FALSE;
|
|
Karsten Hopp |
ad175d |
+ pos_T startpos = curwin->w_cursor;
|
|
Karsten Hopp |
ad175d |
|
|
Karsten Hopp |
ad175d |
/*
|
|
Karsten Hopp |
ad175d |
* Set inclusive for the "E" and "e" command.
|
|
Karsten Hopp |
ad175d |
***************
|
|
Karsten Hopp |
ad175d |
*** 8405,8412 ****
|
|
Karsten Hopp |
ad175d |
else
|
|
Karsten Hopp |
ad175d |
n = fwd_word(cap->count1, cap->arg, cap->oap->op_type != OP_NOP);
|
|
Karsten Hopp |
ad175d |
|
|
Karsten Hopp |
ad175d |
! /* Don't leave the cursor on the NUL past the end of line. */
|
|
Karsten Hopp |
ad175d |
! if (n != FAIL)
|
|
Karsten Hopp |
ad175d |
adjust_cursor(cap->oap);
|
|
Karsten Hopp |
ad175d |
|
|
Karsten Hopp |
ad175d |
if (n == FAIL && cap->oap->op_type == OP_NOP)
|
|
Karsten Hopp |
ad175d |
--- 8406,8414 ----
|
|
Karsten Hopp |
ad175d |
else
|
|
Karsten Hopp |
ad175d |
n = fwd_word(cap->count1, cap->arg, cap->oap->op_type != OP_NOP);
|
|
Karsten Hopp |
ad175d |
|
|
Karsten Hopp |
ad175d |
! /* Don't leave the cursor on the NUL past the end of line. Unless we
|
|
Karsten Hopp |
ad175d |
! * didn't move it forward. */
|
|
Karsten Hopp |
ad175d |
! if (lt(startpos, curwin->w_cursor))
|
|
Karsten Hopp |
ad175d |
adjust_cursor(cap->oap);
|
|
Karsten Hopp |
ad175d |
|
|
Karsten Hopp |
ad175d |
if (n == FAIL && cap->oap->op_type == OP_NOP)
|
|
Karsten Hopp |
ad175d |
*** ../vim-7.1.285/src/version.c Thu Mar 20 14:38:58 2008
|
|
Karsten Hopp |
ad175d |
--- src/version.c Tue Apr 1 12:04:54 2008
|
|
Karsten Hopp |
ad175d |
***************
|
|
Karsten Hopp |
ad175d |
*** 668,669 ****
|
|
Karsten Hopp |
ad175d |
--- 668,671 ----
|
|
Karsten Hopp |
ad175d |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
ad175d |
+ /**/
|
|
Karsten Hopp |
ad175d |
+ 286,
|
|
Karsten Hopp |
ad175d |
/**/
|
|
Karsten Hopp |
ad175d |
|
|
Karsten Hopp |
ad175d |
--
|
|
Karsten Hopp |
ad175d |
hundred-and-one symptoms of being an internet addict:
|
|
Karsten Hopp |
ad175d |
200. You really believe in the concept of a "paperless" office.
|
|
Karsten Hopp |
ad175d |
|
|
Karsten Hopp |
ad175d |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
ad175d |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
ad175d |
\\\ download, build and distribute -- http://www.A-A-P.org ///
|
|
Karsten Hopp |
ad175d |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|