410e2f9
To: vim-dev@vim.org
410e2f9
Subject: Patch 7.1.212
410e2f9
Fcc: outbox
410e2f9
From: Bram Moolenaar <Bram@moolenaar.net>
410e2f9
Mime-Version: 1.0
410e2f9
Content-Type: text/plain; charset=ISO-8859-1
410e2f9
Content-Transfer-Encoding: 8bit
410e2f9
------------
410e2f9
410e2f9
Patch 7.1.212
410e2f9
Problem:    Accessing a byte before a line.
410e2f9
Solution:   Check that the column is 1 or more. (Dominuque Pelle)
410e2f9
Files:	    src/edit.c
410e2f9
410e2f9
410e2f9
*** ../vim-7.1.211/src/edit.c	Sun Jan  6 20:05:36 2008
410e2f9
--- src/edit.c	Mon Jan  7 22:31:36 2008
410e2f9
***************
410e2f9
*** 8452,8457 ****
410e2f9
--- 8452,8458 ----
410e2f9
  	if (	   mode == BACKSPACE_CHAR
410e2f9
  		&& ((p_sta && in_indent)
410e2f9
  		    || (curbuf->b_p_sts != 0
410e2f9
+ 			&& curwin->w_cursor.col > 0
410e2f9
  			&& (*(ml_get_cursor() - 1) == TAB
410e2f9
  			    || (*(ml_get_cursor() - 1) == ' '
410e2f9
  				&& (!*inserted_space_p
410e2f9
*** ../vim-7.1.211/src/version.c	Sun Jan  6 20:05:36 2008
410e2f9
--- src/version.c	Wed Jan  9 10:11:49 2008
410e2f9
***************
410e2f9
*** 668,669 ****
410e2f9
--- 668,671 ----
410e2f9
  {   /* Add new patch number below this line */
410e2f9
+ /**/
410e2f9
+     212,
410e2f9
  /**/
410e2f9
410e2f9
-- 
410e2f9
CRONE:  Who sent you?
410e2f9
ARTHUR: The Knights Who Say Ni!
410e2f9
CRONE:  Aaaagh!  (she looks around in rear) No!  We have no shrubberies here.
410e2f9
                 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
410e2f9
410e2f9
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
410e2f9
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
410e2f9
\\\        download, build and distribute -- http://www.A-A-P.org        ///
410e2f9
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///