073263
To: vim_dev@googlegroups.com
073263
Subject: Patch 7.4.295
073263
Fcc: outbox
073263
From: Bram Moolenaar <Bram@moolenaar.net>
073263
Mime-Version: 1.0
073263
Content-Type: text/plain; charset=UTF-8
073263
Content-Transfer-Encoding: 8bit
073263
------------
073263
073263
Patch 7.4.295
073263
Problem:    Various typos, bad white space and unclear comments.
073263
Solution:   Fix typos.  Improve white space. Update comments.
073263
Files:	    src/testdir/test49.in, src/macros.h, src/screen.c, src/structs.h,
073263
	    src/gui_gtk_x11.c, src/os_unix.c
073263
073263
073263
*** ../vim-7.4.294/src/testdir/test49.in	2012-11-15 22:29:55.000000000 +0100
073263
--- src/testdir/test49.in	2013-11-08 01:06:23.000000000 +0100
073263
***************
073263
*** 1,7 ****
073263
  This is a test of the script language.
073263
  
073263
  If after adding a new test, the test output doesn't appear properly in
073263
! test49.failed, try to add one ore more "G"s at the line ending in "test.out"
073263
  
073263
  STARTTEST
073263
  :so small.vim
073263
--- 1,7 ----
073263
  This is a test of the script language.
073263
  
073263
  If after adding a new test, the test output doesn't appear properly in
073263
! test49.failed, try to add one or more "G"s at the line ending in "test.out"
073263
  
073263
  STARTTEST
073263
  :so small.vim
073263
*** ../vim-7.4.294/src/macros.h	2013-06-12 17:07:32.000000000 +0200
073263
--- src/macros.h	2013-11-08 04:12:45.000000000 +0100
073263
***************
073263
*** 264,270 ****
073263
  # define mb_ptr_adv(p)	    p += has_mbyte ? (*mb_ptr2len)(p) : 1
073263
  /* Advance multi-byte pointer, do not skip over composing chars. */
073263
  # define mb_cptr_adv(p)	    p += enc_utf8 ? utf_ptr2len(p) : has_mbyte ? (*mb_ptr2len)(p) : 1
073263
! /* Backup multi-byte pointer. */
073263
  # define mb_ptr_back(s, p)  p -= has_mbyte ? ((*mb_head_off)(s, p - 1) + 1) : 1
073263
  /* get length of multi-byte char, not including composing chars */
073263
  # define mb_cptr2len(p)	    (enc_utf8 ? utf_ptr2len(p) : (*mb_ptr2len)(p))
073263
--- 264,270 ----
073263
  # define mb_ptr_adv(p)	    p += has_mbyte ? (*mb_ptr2len)(p) : 1
073263
  /* Advance multi-byte pointer, do not skip over composing chars. */
073263
  # define mb_cptr_adv(p)	    p += enc_utf8 ? utf_ptr2len(p) : has_mbyte ? (*mb_ptr2len)(p) : 1
073263
! /* Backup multi-byte pointer. Only use with "p" > "s" ! */
073263
  # define mb_ptr_back(s, p)  p -= has_mbyte ? ((*mb_head_off)(s, p - 1) + 1) : 1
073263
  /* get length of multi-byte char, not including composing chars */
073263
  # define mb_cptr2len(p)	    (enc_utf8 ? utf_ptr2len(p) : (*mb_ptr2len)(p))
073263
*** ../vim-7.4.294/src/screen.c	2014-03-23 15:12:29.935264336 +0100
073263
--- src/screen.c	2014-03-27 11:34:36.128359605 +0100
073263
***************
073263
*** 2456,2463 ****
073263
  	if (len > 0)
073263
  	{
073263
  	    int	    w = number_width(wp);
073263
! 	    long num;
073263
! 	    char *fmt = "%*ld ";
073263
  
073263
  	    if (len > w + 1)
073263
  		len = w + 1;
073263
--- 2456,2463 ----
073263
  	if (len > 0)
073263
  	{
073263
  	    int	    w = number_width(wp);
073263
! 	    long    num;
073263
! 	    char    *fmt = "%*ld ";
073263
  
073263
  	    if (len > w + 1)
073263
  		len = w + 1;
073263
*** ../vim-7.4.294/src/structs.h	2014-03-23 16:03:56.171311627 +0100
073263
--- src/structs.h	2014-04-24 15:00:59.053101897 +0200
073263
***************
073263
*** 572,578 ****
073263
      unsigned	mf_page_size;		/* number of bytes in a page */
073263
      int		mf_dirty;		/* TRUE if there are dirty blocks */
073263
  #ifdef FEAT_CRYPT
073263
!     buf_T	*mf_buffer;		/* bufer this memfile is for */
073263
      char_u	mf_seed[MF_SEED_LEN];	/* seed for encryption */
073263
  
073263
      /* Values for key, method and seed used for reading data blocks when
073263
--- 572,578 ----
073263
      unsigned	mf_page_size;		/* number of bytes in a page */
073263
      int		mf_dirty;		/* TRUE if there are dirty blocks */
073263
  #ifdef FEAT_CRYPT
073263
!     buf_T	*mf_buffer;		/* buffer this memfile is for */
073263
      char_u	mf_seed[MF_SEED_LEN];	/* seed for encryption */
073263
  
073263
      /* Values for key, method and seed used for reading data blocks when
073263
*** ../vim-7.4.294/src/gui_gtk_x11.c	2014-04-29 15:11:39.783847283 +0200
073263
--- src/gui_gtk_x11.c	2014-05-07 20:27:54.545275130 +0200
073263
***************
073263
*** 2054,2059 ****
073263
--- 2054,2060 ----
073263
  
073263
      ssop_flags = save_ssop_flags;
073263
      g_free(mksession_cmdline);
073263
+ 
073263
      /*
073263
       * Reopen the file and append a command to restore v:this_session,
073263
       * as if this save never happened.	This is to avoid conflicts with
073263
*** ../vim-7.4.294/src/os_unix.c	2014-04-23 12:52:36.499369426 +0200
073263
--- src/os_unix.c	2014-05-13 13:02:56.329579378 +0200
073263
***************
073263
*** 3783,3789 ****
073263
  	del_mouse_termcode(KS_URXVT_MOUSE);
073263
  # endif
073263
  # ifdef FEAT_MOUSE_SGR
073263
!     /* same as the dec mouse */
073263
      if (use_xterm_mouse() == 4
073263
  #  ifdef FEAT_GUI
073263
  	    && !gui.in_use
073263
--- 3783,3789 ----
073263
  	del_mouse_termcode(KS_URXVT_MOUSE);
073263
  # endif
073263
  # ifdef FEAT_MOUSE_SGR
073263
!     /* There is no conflict with xterm mouse */
073263
      if (use_xterm_mouse() == 4
073263
  #  ifdef FEAT_GUI
073263
  	    && !gui.in_use
073263
*** ../vim-7.4.294/src/version.c	2014-05-13 20:15:20.461806487 +0200
073263
--- src/version.c	2014-05-13 20:17:27.693807600 +0200
073263
***************
073263
*** 736,737 ****
073263
--- 736,739 ----
073263
  {   /* Add new patch number below this line */
073263
+ /**/
073263
+     295,
073263
  /**/
073263
073263
-- 
073263
hundred-and-one symptoms of being an internet addict:
073263
157. You fum through a magazine, you first check to see if it has a web
073263
     address.
073263
073263
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
073263
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
073263
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
073263
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///