jkunstle / rpms / vim

Forked from rpms/vim 3 years ago
Clone

Blame SOURCES/7.4.295

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