jkunstle / rpms / vim

Forked from rpms/vim 3 years ago
Clone

Blame SOURCES/7.4.075

8b9a1c
To: vim_dev@googlegroups.com
8b9a1c
Subject: Patch 7.4.075
8b9a1c
Fcc: outbox
8b9a1c
From: Bram Moolenaar <Bram@moolenaar.net>
8b9a1c
Mime-Version: 1.0
8b9a1c
Content-Type: text/plain; charset=UTF-8
8b9a1c
Content-Transfer-Encoding: 8bit
8b9a1c
------------
8b9a1c
8b9a1c
Patch 7.4.075
8b9a1c
Problem:    Locally setting 'undolevels' is not tested.
8b9a1c
Solution:   Add a test. (Christian Brabandt)
8b9a1c
Files:      src/testdir/test100.in, src/testdir/test100.ok,
8b9a1c
            src/testdir/Make_amiga.mak, src/testdir/Make_dos.mak,
8b9a1c
            src/testdir/Make_ming.mak, src/testdir/Make_os2.mak,
8b9a1c
            src/testdir/Make_vms.mms, src/testdir/Makefile, src/Makefile
8b9a1c
8b9a1c
8b9a1c
*** ../vim-7.4.074/src/testdir/test100.in	2013-11-07 03:24:56.000000000 +0100
8b9a1c
--- src/testdir/test100.in	2013-11-07 03:20:32.000000000 +0100
8b9a1c
***************
8b9a1c
*** 0 ****
8b9a1c
--- 1,42 ----
8b9a1c
+ Tests for 'undolevel' setting being global-local
8b9a1c
+ 
8b9a1c
+ STARTTEST
8b9a1c
+ :so small.vim
8b9a1c
+ :set nocompatible viminfo+=nviminfo ul=5
8b9a1c
+ :fu! FillBuffer()
8b9a1c
+   :for i in range(1,13)
8b9a1c
+     :put=i
8b9a1c
+     :exe "setg ul=" . &g:ul
8b9a1c
+   :endfor
8b9a1c
+ :endfu
8b9a1c
+ :fu! UndoLevel()
8b9a1c
+   :redir @a | setglobal undolevels? | echon ' global' | setlocal undolevels? | echon ' local' |redir end
8b9a1c
+   :$put a
8b9a1c
+ :endfu
8b9a1c
+ :new one
8b9a1c
+ :0put ='ONE: expecting global undolevels: 5, local undolevels: -123456 (default)'
8b9a1c
+ :call FillBuffer()
8b9a1c
+ :call feedkeys(":earlier 10\n", 't')
8b9a1c
+ :call UndoLevel()
8b9a1c
+ :%w! test.out
8b9a1c
+ :new two
8b9a1c
+ :0put ='TWO: expecting global undolevels: 5, local undolevels: 2 (first) then 10 (afterwards)'
8b9a1c
+ :setlocal ul=2
8b9a1c
+ :call FillBuffer()
8b9a1c
+ :call feedkeys(":earlier 10\n", 't')
8b9a1c
+ :call UndoLevel()
8b9a1c
+ :setlocal ul=10
8b9a1c
+ :call UndoLevel()
8b9a1c
+ :%w >> test.out
8b9a1c
+ :wincmd p
8b9a1c
+ :redir >>test.out | echo "global value shouldn't be changed and still be 5!" | echo 'ONE: expecting global undolevels: 5, local undolevels: -123456 (default)'|:setglobal undolevels? | echon ' global' | setlocal undolevels? | echon ' local' |echo "" |redir end
8b9a1c
+ :new three
8b9a1c
+ :setglobal ul=50
8b9a1c
+ :1put ='global value should be changed to 50'
8b9a1c
+ :2put ='THREE: expecting global undolevels: 50, local undolevels: -123456 (default)'
8b9a1c
+ :call UndoLevel()
8b9a1c
+ :%w >> test.out
8b9a1c
+ :"sleep 10
8b9a1c
+ :qa!
8b9a1c
+ ENDTEST
8b9a1c
+ 
8b9a1c
*** ../vim-7.4.074/src/testdir/test100.ok	2013-11-07 03:24:56.000000000 +0100
8b9a1c
--- src/testdir/test100.ok	2013-11-07 03:11:51.000000000 +0100
8b9a1c
***************
8b9a1c
*** 0 ****
8b9a1c
--- 1,41 ----
8b9a1c
+ ONE: expecting global undolevels: 5, local undolevels: -123456 (default)
8b9a1c
+ 1
8b9a1c
+ 2
8b9a1c
+ 3
8b9a1c
+ 4
8b9a1c
+ 5
8b9a1c
+ 6
8b9a1c
+ 7
8b9a1c
+ 
8b9a1c
+ 
8b9a1c
+   undolevels=5 global
8b9a1c
+   undolevels=-123456 local
8b9a1c
+ TWO: expecting global undolevels: 5, local undolevels: 2 (first) then 10 (afterwards)
8b9a1c
+ 1
8b9a1c
+ 2
8b9a1c
+ 3
8b9a1c
+ 4
8b9a1c
+ 5
8b9a1c
+ 6
8b9a1c
+ 7
8b9a1c
+ 8
8b9a1c
+ 9
8b9a1c
+ 10
8b9a1c
+ 
8b9a1c
+ 
8b9a1c
+   undolevels=5 global
8b9a1c
+   undolevels=2 local
8b9a1c
+ 
8b9a1c
+   undolevels=5 global
8b9a1c
+   undolevels=10 local
8b9a1c
+ 
8b9a1c
+ global value shouldn't be changed and still be 5!
8b9a1c
+ ONE: expecting global undolevels: 5, local undolevels: -123456 (default)
8b9a1c
+   undolevels=5 global
8b9a1c
+   undolevels=-123456 local
8b9a1c
+ 
8b9a1c
+ global value should be changed to 50
8b9a1c
+ THREE: expecting global undolevels: 50, local undolevels: -123456 (default)
8b9a1c
+ 
8b9a1c
+   undolevels=50 global
8b9a1c
+   undolevels=-123456 local
8b9a1c
*** ../vim-7.4.074/src/testdir/Make_amiga.mak	2013-09-19 17:00:14.000000000 +0200
8b9a1c
--- src/testdir/Make_amiga.mak	2013-11-07 03:07:57.000000000 +0100
8b9a1c
***************
8b9a1c
*** 34,40 ****
8b9a1c
  		test81.out test82.out test83.out test84.out test88.out \
8b9a1c
  		test89.out test90.out test91.out test92.out test93.out \
8b9a1c
  		test94.out test95.out test96.out test97.out test98.out \
8b9a1c
! 		test99.out
8b9a1c
  
8b9a1c
  .SUFFIXES: .in .out
8b9a1c
  
8b9a1c
--- 34,40 ----
8b9a1c
  		test81.out test82.out test83.out test84.out test88.out \
8b9a1c
  		test89.out test90.out test91.out test92.out test93.out \
8b9a1c
  		test94.out test95.out test96.out test97.out test98.out \
8b9a1c
! 		test99.out test100.out
8b9a1c
  
8b9a1c
  .SUFFIXES: .in .out
8b9a1c
  
8b9a1c
***************
8b9a1c
*** 150,152 ****
8b9a1c
--- 150,153 ----
8b9a1c
  test97.out: test97.in
8b9a1c
  test98.out: test98.in
8b9a1c
  test99.out: test99.in
8b9a1c
+ test100.out: test100.in
8b9a1c
*** ../vim-7.4.074/src/testdir/Make_dos.mak	2013-09-19 17:00:14.000000000 +0200
8b9a1c
--- src/testdir/Make_dos.mak	2013-11-07 03:08:05.000000000 +0100
8b9a1c
***************
8b9a1c
*** 32,38 ****
8b9a1c
  		test79.out test80.out test81.out test82.out test83.out \
8b9a1c
  		test84.out test85.out test86.out test87.out test88.out \
8b9a1c
  		test89.out test90.out test91.out test92.out test93.out \
8b9a1c
! 		test94.out test95.out test96.out test98.out test99.out
8b9a1c
  
8b9a1c
  SCRIPTS32 =	test50.out test70.out
8b9a1c
  
8b9a1c
--- 32,39 ----
8b9a1c
  		test79.out test80.out test81.out test82.out test83.out \
8b9a1c
  		test84.out test85.out test86.out test87.out test88.out \
8b9a1c
  		test89.out test90.out test91.out test92.out test93.out \
8b9a1c
! 		test94.out test95.out test96.out test98.out test99.out \
8b9a1c
! 		test100.out
8b9a1c
  
8b9a1c
  SCRIPTS32 =	test50.out test70.out
8b9a1c
  
8b9a1c
*** ../vim-7.4.074/src/testdir/Make_ming.mak	2013-09-19 17:00:14.000000000 +0200
8b9a1c
--- src/testdir/Make_ming.mak	2013-11-07 03:08:12.000000000 +0100
8b9a1c
***************
8b9a1c
*** 52,58 ****
8b9a1c
  		test79.out test80.out test81.out test82.out test83.out \
8b9a1c
  		test84.out test85.out test86.out test87.out test88.out \
8b9a1c
  		test89.out test90.out test91.out test92.out test93.out \
8b9a1c
! 		test94.out test95.out test96.out test98.out test99.out
8b9a1c
  
8b9a1c
  SCRIPTS32 =	test50.out test70.out
8b9a1c
  
8b9a1c
--- 52,59 ----
8b9a1c
  		test79.out test80.out test81.out test82.out test83.out \
8b9a1c
  		test84.out test85.out test86.out test87.out test88.out \
8b9a1c
  		test89.out test90.out test91.out test92.out test93.out \
8b9a1c
! 		test94.out test95.out test96.out test98.out test99.out \
8b9a1c
! 		test100out
8b9a1c
  
8b9a1c
  SCRIPTS32 =	test50.out test70.out
8b9a1c
  
8b9a1c
*** ../vim-7.4.074/src/testdir/Make_os2.mak	2013-09-19 17:00:14.000000000 +0200
8b9a1c
--- src/testdir/Make_os2.mak	2013-11-07 03:08:18.000000000 +0100
8b9a1c
***************
8b9a1c
*** 34,40 ****
8b9a1c
  		test76.out test77.out test78.out test79.out test80.out \
8b9a1c
  		test81.out test82.out test83.out test84.out test88.out \
8b9a1c
  		test89.out test90.out test91.out test92.out test93.out \
8b9a1c
! 		test94.out test95.out test96.out test98.out test99.out
8b9a1c
  
8b9a1c
  .SUFFIXES: .in .out
8b9a1c
  
8b9a1c
--- 34,41 ----
8b9a1c
  		test76.out test77.out test78.out test79.out test80.out \
8b9a1c
  		test81.out test82.out test83.out test84.out test88.out \
8b9a1c
  		test89.out test90.out test91.out test92.out test93.out \
8b9a1c
! 		test94.out test95.out test96.out test98.out test99.out \
8b9a1c
! 		test100.out
8b9a1c
  
8b9a1c
  .SUFFIXES: .in .out
8b9a1c
  
8b9a1c
*** ../vim-7.4.074/src/testdir/Make_vms.mms	2013-09-19 17:00:14.000000000 +0200
8b9a1c
--- src/testdir/Make_vms.mms	2013-11-07 03:08:24.000000000 +0100
8b9a1c
***************
8b9a1c
*** 4,10 ****
8b9a1c
  # Authors:	Zoltan Arpadffy, <arpadffy@polarhome.com>
8b9a1c
  #		Sandor Kopanyi,  <sandor.kopanyi@mailbox.hu>
8b9a1c
  #
8b9a1c
! # Last change:  2013 Sep 19
8b9a1c
  #
8b9a1c
  # This has been tested on VMS 6.2 to 8.3 on DEC Alpha, VAX and IA64.
8b9a1c
  # Edit the lines in the Configuration section below to select.
8b9a1c
--- 4,10 ----
8b9a1c
  # Authors:	Zoltan Arpadffy, <arpadffy@polarhome.com>
8b9a1c
  #		Sandor Kopanyi,  <sandor.kopanyi@mailbox.hu>
8b9a1c
  #
8b9a1c
! # Last change:  2013 Nov 07
8b9a1c
  #
8b9a1c
  # This has been tested on VMS 6.2 to 8.3 on DEC Alpha, VAX and IA64.
8b9a1c
  # Edit the lines in the Configuration section below to select.
8b9a1c
***************
8b9a1c
*** 78,84 ****
8b9a1c
  	 test77.out test78.out test79.out test80.out test81.out \
8b9a1c
  	 test82.out test83.out test84.out test88.out test89.out \
8b9a1c
  	 test90.out test91.out test92.out test93.out test94.out \
8b9a1c
! 	 test95.out test96.out test97.out test98.out test99.out
8b9a1c
  
8b9a1c
  # Known problems:
8b9a1c
  # Test 30: a problem around mac format - unknown reason
8b9a1c
--- 78,85 ----
8b9a1c
  	 test77.out test78.out test79.out test80.out test81.out \
8b9a1c
  	 test82.out test83.out test84.out test88.out test89.out \
8b9a1c
  	 test90.out test91.out test92.out test93.out test94.out \
8b9a1c
! 	 test95.out test96.out test97.out test98.out test99.out \
8b9a1c
! 	 test100.out
8b9a1c
  
8b9a1c
  # Known problems:
8b9a1c
  # Test 30: a problem around mac format - unknown reason
8b9a1c
*** ../vim-7.4.074/src/testdir/Makefile	2013-09-22 15:03:34.000000000 +0200
8b9a1c
--- src/testdir/Makefile	2013-11-07 03:08:31.000000000 +0100
8b9a1c
***************
8b9a1c
*** 30,36 ****
8b9a1c
  		test84.out test85.out test86.out test87.out test88.out \
8b9a1c
  		test89.out test90.out test91.out test92.out test93.out \
8b9a1c
  		test94.out test95.out test96.out test97.out test98.out \
8b9a1c
! 		test99.out
8b9a1c
  
8b9a1c
  SCRIPTS_GUI = test16.out
8b9a1c
  
8b9a1c
--- 30,36 ----
8b9a1c
  		test84.out test85.out test86.out test87.out test88.out \
8b9a1c
  		test89.out test90.out test91.out test92.out test93.out \
8b9a1c
  		test94.out test95.out test96.out test97.out test98.out \
8b9a1c
! 		test99.out test100.out
8b9a1c
  
8b9a1c
  SCRIPTS_GUI = test16.out
8b9a1c
  
8b9a1c
*** ../vim-7.4.074/src/Makefile	2013-08-10 14:21:15.000000000 +0200
8b9a1c
--- src/Makefile	2013-11-07 03:10:40.000000000 +0100
8b9a1c
***************
8b9a1c
*** 1882,1888 ****
8b9a1c
  	test60 test61 test62 test63 test64 test65 test66 test67 test68 test69 \
8b9a1c
  	test70 test71 test72 test73 test74 test75 test76 test77 test78 test79 \
8b9a1c
  	test80 test81 test82 test83 test84 test85 test86 test87 test88 test89 \
8b9a1c
! 	test90 test91 test92 test93 test94 test95 test96 test97 test98 test99:
8b9a1c
  	cd testdir; rm $@.out; $(MAKE) -f Makefile $@.out VIMPROG=../$(VIMTARGET)
8b9a1c
  
8b9a1c
  testclean:
8b9a1c
--- 1883,1890 ----
8b9a1c
  	test60 test61 test62 test63 test64 test65 test66 test67 test68 test69 \
8b9a1c
  	test70 test71 test72 test73 test74 test75 test76 test77 test78 test79 \
8b9a1c
  	test80 test81 test82 test83 test84 test85 test86 test87 test88 test89 \
8b9a1c
! 	test90 test91 test92 test93 test94 test95 test96 test97 test98 test99 \
8b9a1c
! 	test100 test101 test102 test103 test104 test105 test106 test107:
8b9a1c
  	cd testdir; rm $@.out; $(MAKE) -f Makefile $@.out VIMPROG=../$(VIMTARGET)
8b9a1c
  
8b9a1c
  testclean:
8b9a1c
*** ../vim-7.4.074/src/version.c	2013-11-07 03:04:06.000000000 +0100
8b9a1c
--- src/version.c	2013-11-07 03:10:10.000000000 +0100
8b9a1c
***************
8b9a1c
*** 740,741 ****
8b9a1c
--- 740,743 ----
8b9a1c
  {   /* Add new patch number below this line */
8b9a1c
+ /**/
8b9a1c
+     75,
8b9a1c
  /**/
8b9a1c
8b9a1c
-- 
8b9a1c
Why is "abbreviation" such a long word?
8b9a1c
8b9a1c
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
8b9a1c
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
8b9a1c
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
8b9a1c
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///