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