Blame SOURCES/7.4.386

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