Karsten Hopp d11bea
To: vim-dev@vim.org
Karsten Hopp d11bea
Subject: Patch 7.2.094
Karsten Hopp d11bea
Fcc: outbox
Karsten Hopp d11bea
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp d11bea
Mime-Version: 1.0
Karsten Hopp d11bea
Content-Type: text/plain; charset=ISO-8859-1
Karsten Hopp d11bea
Content-Transfer-Encoding: 8bit
Karsten Hopp d11bea
------------
Karsten Hopp d11bea
Karsten Hopp d11bea
Patch 7.2.094
Karsten Hopp d11bea
Problem:    Compiler warning for signed/unsigned compare.
Karsten Hopp d11bea
Solution:   Add type cast.  Also fix a few typos.
Karsten Hopp d11bea
Files:	    src/edit.c
Karsten Hopp d11bea
Karsten Hopp d11bea
Karsten Hopp d11bea
*** ../vim-7.2.093/src/edit.c	Tue Jan 13 12:29:03 2009
Karsten Hopp d11bea
--- src/edit.c	Wed Jan 28 21:13:51 2009
Karsten Hopp d11bea
***************
Karsten Hopp d11bea
*** 1958,1963 ****
Karsten Hopp d11bea
--- 1958,1964 ----
Karsten Hopp d11bea
   * Only matters when there are composing characters.
Karsten Hopp d11bea
   * Return TRUE when something was deleted.
Karsten Hopp d11bea
   */
Karsten Hopp d11bea
+ /*ARGSUSED*/
Karsten Hopp d11bea
     static int
Karsten Hopp d11bea
  del_char_after_col(limit_col)
Karsten Hopp d11bea
      int limit_col;
Karsten Hopp d11bea
***************
Karsten Hopp d11bea
*** 1971,1977 ****
Karsten Hopp d11bea
  	 * skip forward again when going too far back because of a
Karsten Hopp d11bea
  	 * composing character. */
Karsten Hopp d11bea
  	mb_adjust_cursor();
Karsten Hopp d11bea
! 	while (curwin->w_cursor.col < limit_col)
Karsten Hopp d11bea
  	{
Karsten Hopp d11bea
  	    int l = utf_ptr2len(ml_get_cursor());
Karsten Hopp d11bea
  
Karsten Hopp d11bea
--- 1972,1978 ----
Karsten Hopp d11bea
  	 * skip forward again when going too far back because of a
Karsten Hopp d11bea
  	 * composing character. */
Karsten Hopp d11bea
  	mb_adjust_cursor();
Karsten Hopp d11bea
! 	while (curwin->w_cursor.col < (colnr_T)limit_col)
Karsten Hopp d11bea
  	{
Karsten Hopp d11bea
  	    int l = utf_ptr2len(ml_get_cursor());
Karsten Hopp d11bea
  
Karsten Hopp d11bea
***************
Karsten Hopp d11bea
*** 4240,4246 ****
Karsten Hopp d11bea
  	}
Karsten Hopp d11bea
  
Karsten Hopp d11bea
  	/* check if compl_curr_match has changed, (e.g. other type of
Karsten Hopp d11bea
! 	 * expansion added somenthing) */
Karsten Hopp d11bea
  	if (type != 0 && compl_curr_match != old_match)
Karsten Hopp d11bea
  	    found_new_match = OK;
Karsten Hopp d11bea
  
Karsten Hopp d11bea
--- 4241,4247 ----
Karsten Hopp d11bea
  	}
Karsten Hopp d11bea
  
Karsten Hopp d11bea
  	/* check if compl_curr_match has changed, (e.g. other type of
Karsten Hopp d11bea
! 	 * expansion added something) */
Karsten Hopp d11bea
  	if (type != 0 && compl_curr_match != old_match)
Karsten Hopp d11bea
  	    found_new_match = OK;
Karsten Hopp d11bea
  
Karsten Hopp d11bea
***************
Karsten Hopp d11bea
*** 4741,4747 ****
Karsten Hopp d11bea
  		}
Karsten Hopp d11bea
  		compl_length = curwin->w_cursor.col - (int)compl_col;
Karsten Hopp d11bea
  		/* IObuff is used to add a "word from the next line" would we
Karsten Hopp d11bea
! 		 * have enough space?  just being paranoic */
Karsten Hopp d11bea
  #define	MIN_SPACE 75
Karsten Hopp d11bea
  		if (compl_length > (IOSIZE - MIN_SPACE))
Karsten Hopp d11bea
  		{
Karsten Hopp d11bea
--- 4742,4748 ----
Karsten Hopp d11bea
  		}
Karsten Hopp d11bea
  		compl_length = curwin->w_cursor.col - (int)compl_col;
Karsten Hopp d11bea
  		/* IObuff is used to add a "word from the next line" would we
Karsten Hopp d11bea
! 		 * have enough space?  just being paranoid */
Karsten Hopp d11bea
  #define	MIN_SPACE 75
Karsten Hopp d11bea
  		if (compl_length > (IOSIZE - MIN_SPACE))
Karsten Hopp d11bea
  		{
Karsten Hopp d11bea
***************
Karsten Hopp d11bea
*** 8206,8212 ****
Karsten Hopp d11bea
  /*
Karsten Hopp d11bea
   * If the cursor is on an indent, ^T/^D insert/delete one
Karsten Hopp d11bea
   * shiftwidth.	Otherwise ^T/^D behave like a "<<" or ">>".
Karsten Hopp d11bea
!  * Always round the indent to 'shiftwith', this is compatible
Karsten Hopp d11bea
   * with vi.  But vi only supports ^T and ^D after an
Karsten Hopp d11bea
   * autoindent, we support it everywhere.
Karsten Hopp d11bea
   */
Karsten Hopp d11bea
--- 8207,8213 ----
Karsten Hopp d11bea
  /*
Karsten Hopp d11bea
   * If the cursor is on an indent, ^T/^D insert/delete one
Karsten Hopp d11bea
   * shiftwidth.	Otherwise ^T/^D behave like a "<<" or ">>".
Karsten Hopp d11bea
!  * Always round the indent to 'shiftwidth', this is compatible
Karsten Hopp d11bea
   * with vi.  But vi only supports ^T and ^D after an
Karsten Hopp d11bea
   * autoindent, we support it everywhere.
Karsten Hopp d11bea
   */
Karsten Hopp d11bea
*** ../vim-7.2.093/src/version.c	Wed Jan 28 21:22:20 2009
Karsten Hopp d11bea
--- src/version.c	Wed Feb  4 11:17:02 2009
Karsten Hopp d11bea
***************
Karsten Hopp d11bea
*** 678,679 ****
Karsten Hopp d11bea
--- 678,681 ----
Karsten Hopp d11bea
  {   /* Add new patch number below this line */
Karsten Hopp d11bea
+ /**/
Karsten Hopp d11bea
+     94,
Karsten Hopp d11bea
  /**/
Karsten Hopp d11bea
Karsten Hopp d11bea
-- 
Karsten Hopp d11bea
Despite the cost of living, have you noticed how it remains so popular?
Karsten Hopp d11bea
Karsten Hopp d11bea
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp d11bea
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp d11bea
\\\        download, build and distribute -- http://www.A-A-P.org        ///
Karsten Hopp d11bea
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///