Karsten Hopp ce6386
To: vim_dev@googlegroups.com
Karsten Hopp ce6386
Subject: Patch 7.3.077
Karsten Hopp ce6386
Fcc: outbox
Karsten Hopp ce6386
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp ce6386
Mime-Version: 1.0
Karsten Hopp ce6386
Content-Type: text/plain; charset=UTF-8
Karsten Hopp ce6386
Content-Transfer-Encoding: 8bit
Karsten Hopp ce6386
------------
Karsten Hopp ce6386
Karsten Hopp ce6386
Patch 7.3.077
Karsten Hopp ce6386
Problem:    When updating crypt of swapfile fails there is no error message.
Karsten Hopp ce6386
	    (Carlo Teubner)
Karsten Hopp ce6386
Solution:   Add the error message.
Karsten Hopp ce6386
Files:	    src/memline.c
Karsten Hopp ce6386
Karsten Hopp ce6386
Karsten Hopp ce6386
*** ../vim-7.3.076/src/memline.c	2010-08-15 21:57:31.000000000 +0200
Karsten Hopp ce6386
--- src/memline.c	2010-12-08 12:39:10.000000000 +0100
Karsten Hopp ce6386
***************
Karsten Hopp ce6386
*** 582,587 ****
Karsten Hopp ce6386
--- 582,590 ----
Karsten Hopp ce6386
  	    idx = ip->ip_index + 1;	    /* go to next index */
Karsten Hopp ce6386
  	    page_count = 1;
Karsten Hopp ce6386
  	}
Karsten Hopp ce6386
+ 
Karsten Hopp ce6386
+ 	if (error > 0)
Karsten Hopp ce6386
+ 	    EMSG(_("E843: Error while updating swap file crypt"));
Karsten Hopp ce6386
      }
Karsten Hopp ce6386
  
Karsten Hopp ce6386
      mfp->mf_old_key = NULL;
Karsten Hopp ce6386
***************
Karsten Hopp ce6386
*** 2384,2390 ****
Karsten Hopp ce6386
   * Make a copy of the line if necessary.
Karsten Hopp ce6386
   */
Karsten Hopp ce6386
  /*
Karsten Hopp ce6386
!  * get a pointer to a (read-only copy of a) line
Karsten Hopp ce6386
   *
Karsten Hopp ce6386
   * On failure an error message is given and IObuff is returned (to avoid
Karsten Hopp ce6386
   * having to check for error everywhere).
Karsten Hopp ce6386
--- 2387,2393 ----
Karsten Hopp ce6386
   * Make a copy of the line if necessary.
Karsten Hopp ce6386
   */
Karsten Hopp ce6386
  /*
Karsten Hopp ce6386
!  * Return a pointer to a (read-only copy of a) line.
Karsten Hopp ce6386
   *
Karsten Hopp ce6386
   * On failure an error message is given and IObuff is returned (to avoid
Karsten Hopp ce6386
   * having to check for error everywhere).
Karsten Hopp ce6386
***************
Karsten Hopp ce6386
*** 2397,2403 ****
Karsten Hopp ce6386
  }
Karsten Hopp ce6386
  
Karsten Hopp ce6386
  /*
Karsten Hopp ce6386
!  * ml_get_pos: get pointer to position 'pos'
Karsten Hopp ce6386
   */
Karsten Hopp ce6386
      char_u *
Karsten Hopp ce6386
  ml_get_pos(pos)
Karsten Hopp ce6386
--- 2400,2406 ----
Karsten Hopp ce6386
  }
Karsten Hopp ce6386
  
Karsten Hopp ce6386
  /*
Karsten Hopp ce6386
!  * Return pointer to position "pos".
Karsten Hopp ce6386
   */
Karsten Hopp ce6386
      char_u *
Karsten Hopp ce6386
  ml_get_pos(pos)
Karsten Hopp ce6386
***************
Karsten Hopp ce6386
*** 2407,2413 ****
Karsten Hopp ce6386
  }
Karsten Hopp ce6386
  
Karsten Hopp ce6386
  /*
Karsten Hopp ce6386
!  * ml_get_curline: get pointer to cursor line.
Karsten Hopp ce6386
   */
Karsten Hopp ce6386
      char_u *
Karsten Hopp ce6386
  ml_get_curline()
Karsten Hopp ce6386
--- 2410,2416 ----
Karsten Hopp ce6386
  }
Karsten Hopp ce6386
  
Karsten Hopp ce6386
  /*
Karsten Hopp ce6386
!  * Return pointer to cursor line.
Karsten Hopp ce6386
   */
Karsten Hopp ce6386
      char_u *
Karsten Hopp ce6386
  ml_get_curline()
Karsten Hopp ce6386
***************
Karsten Hopp ce6386
*** 2416,2422 ****
Karsten Hopp ce6386
  }
Karsten Hopp ce6386
  
Karsten Hopp ce6386
  /*
Karsten Hopp ce6386
!  * ml_get_cursor: get pointer to cursor position
Karsten Hopp ce6386
   */
Karsten Hopp ce6386
      char_u *
Karsten Hopp ce6386
  ml_get_cursor()
Karsten Hopp ce6386
--- 2419,2425 ----
Karsten Hopp ce6386
  }
Karsten Hopp ce6386
  
Karsten Hopp ce6386
  /*
Karsten Hopp ce6386
!  * Return pointer to cursor position.
Karsten Hopp ce6386
   */
Karsten Hopp ce6386
      char_u *
Karsten Hopp ce6386
  ml_get_cursor()
Karsten Hopp ce6386
***************
Karsten Hopp ce6386
*** 2426,2432 ****
Karsten Hopp ce6386
  }
Karsten Hopp ce6386
  
Karsten Hopp ce6386
  /*
Karsten Hopp ce6386
!  * get a pointer to a line in a specific buffer
Karsten Hopp ce6386
   *
Karsten Hopp ce6386
   * "will_change": if TRUE mark the buffer dirty (chars in the line will be
Karsten Hopp ce6386
   * changed)
Karsten Hopp ce6386
--- 2429,2435 ----
Karsten Hopp ce6386
  }
Karsten Hopp ce6386
  
Karsten Hopp ce6386
  /*
Karsten Hopp ce6386
!  * Return a pointer to a line in a specific buffer
Karsten Hopp ce6386
   *
Karsten Hopp ce6386
   * "will_change": if TRUE mark the buffer dirty (chars in the line will be
Karsten Hopp ce6386
   * changed)
Karsten Hopp ce6386
*** ../vim-7.3.076/src/version.c	2010-12-08 13:11:15.000000000 +0100
Karsten Hopp ce6386
--- src/version.c	2010-12-08 13:15:44.000000000 +0100
Karsten Hopp ce6386
***************
Karsten Hopp ce6386
*** 716,717 ****
Karsten Hopp ce6386
--- 716,719 ----
Karsten Hopp ce6386
  {   /* Add new patch number below this line */
Karsten Hopp ce6386
+ /**/
Karsten Hopp ce6386
+     77,
Karsten Hopp ce6386
  /**/
Karsten Hopp ce6386
Karsten Hopp ce6386
-- 
Karsten Hopp ce6386
An operatingsystem is just a name you give to the rest of bloating
Karsten Hopp ce6386
idiosyncratic machine-based-features you left out of your editor.
Karsten Hopp ce6386
			(author unknown)
Karsten Hopp ce6386
Karsten Hopp ce6386
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp ce6386
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp ce6386
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
Karsten Hopp ce6386
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///