jkunstle / rpms / vim

Forked from rpms/vim 3 years ago
Clone
3ef2ca
To: vim_dev@googlegroups.com
3ef2ca
Subject: Patch 7.4.386
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.386
3ef2ca
Problem:    When splitting a window the changelist position is wrong.
3ef2ca
Solution:   Copy the changelist position. (Jacob Niehus)
3ef2ca
Files:	    src/window.c, src/testdir/Make_amiga.mak,
3ef2ca
	    src/testdir/Make_dos.mak, src/testdir/Make_ming.mak,
3ef2ca
	    src/testdir/Make_os2.mak, src/testdir/Make_vms.mms,
3ef2ca
	    src/testdir/Makefile, src/testdir/test_changelist.in,
3ef2ca
	    src/testdir/test_changelist.ok
3ef2ca
3ef2ca
3ef2ca
*** ../vim-7.4.385/src/window.c	2014-07-23 15:21:16.247917462 +0200
3ef2ca
--- src/window.c	2014-07-30 13:55:49.275607374 +0200
3ef2ca
***************
3ef2ca
*** 1178,1183 ****
3ef2ca
--- 1178,1188 ----
3ef2ca
  	    p_wh = size;
3ef2ca
      }
3ef2ca
  
3ef2ca
+ #ifdef FEAT_JUMPLIST
3ef2ca
+     /* Keep same changelist position in new window. */
3ef2ca
+     wp->w_changelistidx = oldwin->w_changelistidx;
3ef2ca
+ #endif
3ef2ca
+ 
3ef2ca
      /*
3ef2ca
       * make the new window the current window
3ef2ca
       */
3ef2ca
*** ../vim-7.4.385/src/testdir/Make_amiga.mak	2014-07-23 15:54:43.443903036 +0200
3ef2ca
--- src/testdir/Make_amiga.mak	2014-07-30 13:54:06.871608110 +0200
3ef2ca
***************
3ef2ca
*** 41,46 ****
3ef2ca
--- 41,47 ----
3ef2ca
  		test_listlbr.out \
3ef2ca
  		test_listlbr_utf8.out \
3ef2ca
  		test_qf_title.out \
3ef2ca
+ 		test_changelist.out \
3ef2ca
  		test_eval.out \
3ef2ca
  		test_options.out
3ef2ca
  
3ef2ca
***************
3ef2ca
*** 171,175 ****
3ef2ca
--- 172,177 ----
3ef2ca
  test_listlbr.out: test_listlbr.in
3ef2ca
  test_listlbr_utf8.out: test_listlbr_utf8.in
3ef2ca
  test_qf_title.out: test_qf_title.in
3ef2ca
+ test_changelist.out: test_changelist.in
3ef2ca
  test_eval.out: test_eval.in
3ef2ca
  test_options.out: test_options.in
3ef2ca
*** ../vim-7.4.385/src/testdir/Make_dos.mak	2014-07-23 15:54:43.443903036 +0200
3ef2ca
--- src/testdir/Make_dos.mak	2014-07-30 13:54:16.091608044 +0200
3ef2ca
***************
3ef2ca
*** 40,45 ****
3ef2ca
--- 40,46 ----
3ef2ca
  		test_listlbr.out \
3ef2ca
  		test_listlbr_utf8.out \
3ef2ca
  		test_qf_title.out \
3ef2ca
+ 		test_changelist.out \
3ef2ca
  		test_eval.out \
3ef2ca
  		test_options.out
3ef2ca
  
3ef2ca
*** ../vim-7.4.385/src/testdir/Make_ming.mak	2014-07-23 15:54:43.443903036 +0200
3ef2ca
--- src/testdir/Make_ming.mak	2014-07-30 13:54:19.775608018 +0200
3ef2ca
***************
3ef2ca
*** 60,65 ****
3ef2ca
--- 60,66 ----
3ef2ca
  		test_listlbr.out \
3ef2ca
  		test_listlbr_utf8.out \
3ef2ca
  		test_qf_title.out \
3ef2ca
+ 		test_changelist.out \
3ef2ca
  		test_eval.out \
3ef2ca
  		test_options.out
3ef2ca
  
3ef2ca
*** ../vim-7.4.385/src/testdir/Make_os2.mak	2014-07-23 15:54:43.443903036 +0200
3ef2ca
--- src/testdir/Make_os2.mak	2014-07-30 13:54:24.207607986 +0200
3ef2ca
***************
3ef2ca
*** 38,43 ****
3ef2ca
--- 38,44 ----
3ef2ca
  		test100.out test101.out test102.out test103.out test104.out \
3ef2ca
  		test105.out test106.out test107.out \
3ef2ca
  		test_autoformat_join.out \
3ef2ca
+ 		test_changelist.out \
3ef2ca
  		test_eval.out \
3ef2ca
  		test_breakindent.out \
3ef2ca
  		test_listlbr.out \
3ef2ca
*** ../vim-7.4.385/src/testdir/Make_vms.mms	2014-07-23 15:54:43.443903036 +0200
3ef2ca
--- src/testdir/Make_vms.mms	2014-07-30 13:54:31.151607936 +0200
3ef2ca
***************
3ef2ca
*** 4,10 ****
3ef2ca
  # Authors:	Zoltan Arpadffy, <arpadffy@polarhome.com>
3ef2ca
  #		Sandor Kopanyi,  <sandor.kopanyi@mailbox.hu>
3ef2ca
  #
3ef2ca
! # Last change:  2014 Jul 23
3ef2ca
  #
3ef2ca
  # This has been tested on VMS 6.2 to 8.3 on DEC Alpha, VAX and IA64.
3ef2ca
  # Edit the lines in the Configuration section below to select.
3ef2ca
--- 4,10 ----
3ef2ca
  # Authors:	Zoltan Arpadffy, <arpadffy@polarhome.com>
3ef2ca
  #		Sandor Kopanyi,  <sandor.kopanyi@mailbox.hu>
3ef2ca
  #
3ef2ca
! # Last change:  2014 Jul 30
3ef2ca
  #
3ef2ca
  # This has been tested on VMS 6.2 to 8.3 on DEC Alpha, VAX and IA64.
3ef2ca
  # Edit the lines in the Configuration section below to select.
3ef2ca
***************
3ef2ca
*** 101,106 ****
3ef2ca
--- 101,107 ----
3ef2ca
  	 test_listlbr.out \
3ef2ca
  	 test_listlbr_utf8.out \
3ef2ca
  	 test_qf_title.out \
3ef2ca
+ 	 test_changelist.out \
3ef2ca
  	 test_eval.out \
3ef2ca
  	 test_options.out
3ef2ca
  
3ef2ca
*** ../vim-7.4.385/src/testdir/Makefile	2014-07-23 15:54:43.443903036 +0200
3ef2ca
--- src/testdir/Makefile	2014-07-30 13:54:45.291607834 +0200
3ef2ca
***************
3ef2ca
*** 38,43 ****
3ef2ca
--- 38,44 ----
3ef2ca
  		test_listlbr.out \
3ef2ca
  		test_listlbr_utf8.out \
3ef2ca
  		test_qf_title.out \
3ef2ca
+ 		test_changelist.out \
3ef2ca
  		test_eval.out \
3ef2ca
  		test_options.out
3ef2ca
  
3ef2ca
*** ../vim-7.4.385/src/testdir/test_changelist.in	2014-07-30 14:04:27.507603650 +0200
3ef2ca
--- src/testdir/test_changelist.in	2014-07-30 13:52:21.363608869 +0200
3ef2ca
***************
3ef2ca
*** 0 ****
3ef2ca
--- 1,22 ----
3ef2ca
+ Test changelist position after splitting window
3ef2ca
+ Set 'undolevels' to make changelist for sourced file
3ef2ca
+ 
3ef2ca
+ STARTTEST
3ef2ca
+ :so small.vim
3ef2ca
+ Gkylp:set ul=100
3ef2ca
+ Gylp:set ul=100
3ef2ca
+ gg
3ef2ca
+ :vsplit
3ef2ca
+ :try
3ef2ca
+ :  normal g;
3ef2ca
+ :  normal ggVGcpass?
3ef2ca
+ :catch
3ef2ca
+ :  normal ggVGcfail?
3ef2ca
+ :finally
3ef2ca
+ :  %w! test.out
3ef2ca
+ :endtry
3ef2ca
+ :qa!
3ef2ca
+ ENDTEST
3ef2ca
+ 
3ef2ca
+ 1
3ef2ca
+ 2
3ef2ca
*** ../vim-7.4.385/src/testdir/test_changelist.ok	2014-07-30 14:04:27.515603650 +0200
3ef2ca
--- src/testdir/test_changelist.ok	2014-07-30 13:53:41.991608289 +0200
3ef2ca
***************
3ef2ca
*** 0 ****
3ef2ca
--- 1 ----
3ef2ca
+ pass
3ef2ca
*** ../vim-7.4.385/src/version.c	2014-07-30 13:22:48.271621613 +0200
3ef2ca
--- src/version.c	2014-07-30 13:56:49.951606938 +0200
3ef2ca
***************
3ef2ca
*** 736,737 ****
3ef2ca
--- 736,739 ----
3ef2ca
  {   /* Add new patch number below this line */
3ef2ca
+ /**/
3ef2ca
+     386,
3ef2ca
  /**/
3ef2ca
3ef2ca
-- 
3ef2ca
Our job was to build a computer information system for the branch banks.  We
3ef2ca
were the perfect people for the job: Dean had seen a computer once, and I had
3ef2ca
heard Dean talk about it.
3ef2ca
				(Scott Adams - The Dilbert principle)
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    ///