Karsten Hopp 49d894
To: vim-dev@vim.org
Karsten Hopp 49d894
Subject: Patch 7.1.190
Karsten Hopp 49d894
Fcc: outbox
Karsten Hopp 49d894
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp 49d894
Mime-Version: 1.0
Karsten Hopp 49d894
Content-Type: text/plain; charset=ISO-8859-1
Karsten Hopp 49d894
Content-Transfer-Encoding: 8bit
Karsten Hopp 49d894
------------
Karsten Hopp 49d894
Karsten Hopp 49d894
Patch 7.1.190
Karsten Hopp 49d894
Problem:    Cursor after end-of-line: "iA sentence.<Esc>)"
Karsten Hopp 49d894
Solution:   Move cursor back and make motion inclusive.
Karsten Hopp 49d894
Files:	    src/normal.c
Karsten Hopp 49d894
Karsten Hopp 49d894
Karsten Hopp 49d894
*** ../vim-7.1.189/src/normal.c	Wed Jan  2 16:25:20 2008
Karsten Hopp 49d894
--- src/normal.c	Wed Jan  2 22:04:38 2008
Karsten Hopp 49d894
***************
Karsten Hopp 49d894
*** 6564,6569 ****
Karsten Hopp 49d894
--- 6564,6575 ----
Karsten Hopp 49d894
  	clearopbeep(cap->oap);
Karsten Hopp 49d894
      else
Karsten Hopp 49d894
      {
Karsten Hopp 49d894
+ 	/* Don't leave the cursor on the NUL past a line */
Karsten Hopp 49d894
+ 	if (curwin->w_cursor.col > 0 && gchar_cursor() == NUL)
Karsten Hopp 49d894
+ 	{
Karsten Hopp 49d894
+ 	    --curwin->w_cursor.col;
Karsten Hopp 49d894
+ 	    cap->oap->inclusive = TRUE;
Karsten Hopp 49d894
+ 	}
Karsten Hopp 49d894
  #ifdef FEAT_VIRTUALEDIT
Karsten Hopp 49d894
  	curwin->w_cursor.coladd = 0;
Karsten Hopp 49d894
  #endif
Karsten Hopp 49d894
*** ../vim-7.1.189/src/version.c	Thu Jan  3 12:42:39 2008
Karsten Hopp 49d894
--- src/version.c	Thu Jan  3 13:19:03 2008
Karsten Hopp 49d894
***************
Karsten Hopp 49d894
*** 668,669 ****
Karsten Hopp 49d894
--- 668,671 ----
Karsten Hopp 49d894
  {   /* Add new patch number below this line */
Karsten Hopp 49d894
+ /**/
Karsten Hopp 49d894
+     190,
Karsten Hopp 49d894
  /**/
Karsten Hopp 49d894
Karsten Hopp 49d894
-- 
Karsten Hopp 49d894
    [clop clop]
Karsten Hopp 49d894
GUARD #1:  Halt!  Who goes there?
Karsten Hopp 49d894
ARTHUR:    It is I, Arthur, son of Uther Pendragon, from the castle of
Karsten Hopp 49d894
           Camelot.  King of the Britons, defeator of the Saxons, sovereign of
Karsten Hopp 49d894
           all England!
Karsten Hopp 49d894
GUARD #1:  Pull the other one!
Karsten Hopp 49d894
                                  The Quest for the Holy Grail (Monty Python)
Karsten Hopp 49d894
Karsten Hopp 49d894
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp 49d894
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp 49d894
\\\        download, build and distribute -- http://www.A-A-P.org        ///
Karsten Hopp 49d894
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///