mirror of
https://github.com/vim/vim.git
synced 2025-07-26 11:04:33 -04:00
updated for version 7.4.075
Problem: Locally setting 'undolevels' is not tested. Solution: Add a test. (Christian Brabandt)
This commit is contained in:
parent
aa88732efd
commit
c1c023ecfc
@ -1882,7 +1882,8 @@ test1 test2 test3 test4 test5 test6 test7 test8 test9 \
|
|||||||
test60 test61 test62 test63 test64 test65 test66 test67 test68 test69 \
|
test60 test61 test62 test63 test64 test65 test66 test67 test68 test69 \
|
||||||
test70 test71 test72 test73 test74 test75 test76 test77 test78 test79 \
|
test70 test71 test72 test73 test74 test75 test76 test77 test78 test79 \
|
||||||
test80 test81 test82 test83 test84 test85 test86 test87 test88 test89 \
|
test80 test81 test82 test83 test84 test85 test86 test87 test88 test89 \
|
||||||
test90 test91 test92 test93 test94 test95 test96 test97 test98 test99:
|
test90 test91 test92 test93 test94 test95 test96 test97 test98 test99 \
|
||||||
|
test100 test101 test102 test103 test104 test105 test106 test107:
|
||||||
cd testdir; rm $@.out; $(MAKE) -f Makefile $@.out VIMPROG=../$(VIMTARGET)
|
cd testdir; rm $@.out; $(MAKE) -f Makefile $@.out VIMPROG=../$(VIMTARGET)
|
||||||
|
|
||||||
testclean:
|
testclean:
|
||||||
|
@ -34,7 +34,7 @@ SCRIPTS = test1.out test3.out test4.out test5.out test6.out \
|
|||||||
test81.out test82.out test83.out test84.out test88.out \
|
test81.out test82.out test83.out test84.out test88.out \
|
||||||
test89.out test90.out test91.out test92.out test93.out \
|
test89.out test90.out test91.out test92.out test93.out \
|
||||||
test94.out test95.out test96.out test97.out test98.out \
|
test94.out test95.out test96.out test97.out test98.out \
|
||||||
test99.out
|
test99.out test100.out
|
||||||
|
|
||||||
.SUFFIXES: .in .out
|
.SUFFIXES: .in .out
|
||||||
|
|
||||||
@ -150,3 +150,4 @@ test96.out: test96.in
|
|||||||
test97.out: test97.in
|
test97.out: test97.in
|
||||||
test98.out: test98.in
|
test98.out: test98.in
|
||||||
test99.out: test99.in
|
test99.out: test99.in
|
||||||
|
test100.out: test100.in
|
||||||
|
@ -32,7 +32,8 @@ SCRIPTS = test3.out test4.out test5.out test6.out test7.out \
|
|||||||
test79.out test80.out test81.out test82.out test83.out \
|
test79.out test80.out test81.out test82.out test83.out \
|
||||||
test84.out test85.out test86.out test87.out test88.out \
|
test84.out test85.out test86.out test87.out test88.out \
|
||||||
test89.out test90.out test91.out test92.out test93.out \
|
test89.out test90.out test91.out test92.out test93.out \
|
||||||
test94.out test95.out test96.out test98.out test99.out
|
test94.out test95.out test96.out test98.out test99.out \
|
||||||
|
test100.out
|
||||||
|
|
||||||
SCRIPTS32 = test50.out test70.out
|
SCRIPTS32 = test50.out test70.out
|
||||||
|
|
||||||
|
@ -52,7 +52,8 @@ SCRIPTS = test3.out test4.out test5.out test6.out test7.out \
|
|||||||
test79.out test80.out test81.out test82.out test83.out \
|
test79.out test80.out test81.out test82.out test83.out \
|
||||||
test84.out test85.out test86.out test87.out test88.out \
|
test84.out test85.out test86.out test87.out test88.out \
|
||||||
test89.out test90.out test91.out test92.out test93.out \
|
test89.out test90.out test91.out test92.out test93.out \
|
||||||
test94.out test95.out test96.out test98.out test99.out
|
test94.out test95.out test96.out test98.out test99.out \
|
||||||
|
test100out
|
||||||
|
|
||||||
SCRIPTS32 = test50.out test70.out
|
SCRIPTS32 = test50.out test70.out
|
||||||
|
|
||||||
|
@ -34,7 +34,8 @@ SCRIPTS = test1.out test3.out test4.out test5.out test6.out \
|
|||||||
test76.out test77.out test78.out test79.out test80.out \
|
test76.out test77.out test78.out test79.out test80.out \
|
||||||
test81.out test82.out test83.out test84.out test88.out \
|
test81.out test82.out test83.out test84.out test88.out \
|
||||||
test89.out test90.out test91.out test92.out test93.out \
|
test89.out test90.out test91.out test92.out test93.out \
|
||||||
test94.out test95.out test96.out test98.out test99.out
|
test94.out test95.out test96.out test98.out test99.out \
|
||||||
|
test100.out
|
||||||
|
|
||||||
.SUFFIXES: .in .out
|
.SUFFIXES: .in .out
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
# Authors: Zoltan Arpadffy, <arpadffy@polarhome.com>
|
# Authors: Zoltan Arpadffy, <arpadffy@polarhome.com>
|
||||||
# Sandor Kopanyi, <sandor.kopanyi@mailbox.hu>
|
# Sandor Kopanyi, <sandor.kopanyi@mailbox.hu>
|
||||||
#
|
#
|
||||||
# Last change: 2013 Sep 19
|
# Last change: 2013 Nov 07
|
||||||
#
|
#
|
||||||
# This has been tested on VMS 6.2 to 8.3 on DEC Alpha, VAX and IA64.
|
# This has been tested on VMS 6.2 to 8.3 on DEC Alpha, VAX and IA64.
|
||||||
# Edit the lines in the Configuration section below to select.
|
# Edit the lines in the Configuration section below to select.
|
||||||
@ -78,7 +78,8 @@ SCRIPT = test1.out test2.out test3.out test4.out test5.out \
|
|||||||
test77.out test78.out test79.out test80.out test81.out \
|
test77.out test78.out test79.out test80.out test81.out \
|
||||||
test82.out test83.out test84.out test88.out test89.out \
|
test82.out test83.out test84.out test88.out test89.out \
|
||||||
test90.out test91.out test92.out test93.out test94.out \
|
test90.out test91.out test92.out test93.out test94.out \
|
||||||
test95.out test96.out test97.out test98.out test99.out
|
test95.out test96.out test97.out test98.out test99.out \
|
||||||
|
test100.out
|
||||||
|
|
||||||
# Known problems:
|
# Known problems:
|
||||||
# Test 30: a problem around mac format - unknown reason
|
# Test 30: a problem around mac format - unknown reason
|
||||||
|
@ -30,7 +30,7 @@ SCRIPTS = test1.out test2.out test3.out test4.out test5.out test6.out \
|
|||||||
test84.out test85.out test86.out test87.out test88.out \
|
test84.out test85.out test86.out test87.out test88.out \
|
||||||
test89.out test90.out test91.out test92.out test93.out \
|
test89.out test90.out test91.out test92.out test93.out \
|
||||||
test94.out test95.out test96.out test97.out test98.out \
|
test94.out test95.out test96.out test97.out test98.out \
|
||||||
test99.out
|
test99.out test100.out
|
||||||
|
|
||||||
SCRIPTS_GUI = test16.out
|
SCRIPTS_GUI = test16.out
|
||||||
|
|
||||||
|
42
src/testdir/test100.in
Normal file
42
src/testdir/test100.in
Normal file
@ -0,0 +1,42 @@
|
|||||||
|
Tests for 'undolevel' setting being global-local
|
||||||
|
|
||||||
|
STARTTEST
|
||||||
|
:so small.vim
|
||||||
|
:set nocompatible viminfo+=nviminfo ul=5
|
||||||
|
:fu! FillBuffer()
|
||||||
|
:for i in range(1,13)
|
||||||
|
:put=i
|
||||||
|
:exe "setg ul=" . &g:ul
|
||||||
|
:endfor
|
||||||
|
:endfu
|
||||||
|
:fu! UndoLevel()
|
||||||
|
:redir @a | setglobal undolevels? | echon ' global' | setlocal undolevels? | echon ' local' |redir end
|
||||||
|
:$put a
|
||||||
|
:endfu
|
||||||
|
:new one
|
||||||
|
:0put ='ONE: expecting global undolevels: 5, local undolevels: -123456 (default)'
|
||||||
|
:call FillBuffer()
|
||||||
|
:call feedkeys(":earlier 10\n", 't')
|
||||||
|
:call UndoLevel()
|
||||||
|
:%w! test.out
|
||||||
|
:new two
|
||||||
|
:0put ='TWO: expecting global undolevels: 5, local undolevels: 2 (first) then 10 (afterwards)'
|
||||||
|
:setlocal ul=2
|
||||||
|
:call FillBuffer()
|
||||||
|
:call feedkeys(":earlier 10\n", 't')
|
||||||
|
:call UndoLevel()
|
||||||
|
:setlocal ul=10
|
||||||
|
:call UndoLevel()
|
||||||
|
:%w >> test.out
|
||||||
|
:wincmd p
|
||||||
|
: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
|
||||||
|
:new three
|
||||||
|
:setglobal ul=50
|
||||||
|
:1put ='global value should be changed to 50'
|
||||||
|
:2put ='THREE: expecting global undolevels: 50, local undolevels: -123456 (default)'
|
||||||
|
:call UndoLevel()
|
||||||
|
:%w >> test.out
|
||||||
|
:"sleep 10
|
||||||
|
:qa!
|
||||||
|
ENDTEST
|
||||||
|
|
41
src/testdir/test100.ok
Normal file
41
src/testdir/test100.ok
Normal file
@ -0,0 +1,41 @@
|
|||||||
|
ONE: expecting global undolevels: 5, local undolevels: -123456 (default)
|
||||||
|
1
|
||||||
|
2
|
||||||
|
3
|
||||||
|
4
|
||||||
|
5
|
||||||
|
6
|
||||||
|
7
|
||||||
|
|
||||||
|
|
||||||
|
undolevels=5 global
|
||||||
|
undolevels=-123456 local
|
||||||
|
TWO: expecting global undolevels: 5, local undolevels: 2 (first) then 10 (afterwards)
|
||||||
|
1
|
||||||
|
2
|
||||||
|
3
|
||||||
|
4
|
||||||
|
5
|
||||||
|
6
|
||||||
|
7
|
||||||
|
8
|
||||||
|
9
|
||||||
|
10
|
||||||
|
|
||||||
|
|
||||||
|
undolevels=5 global
|
||||||
|
undolevels=2 local
|
||||||
|
|
||||||
|
undolevels=5 global
|
||||||
|
undolevels=10 local
|
||||||
|
|
||||||
|
global value shouldn't be changed and still be 5!
|
||||||
|
ONE: expecting global undolevels: 5, local undolevels: -123456 (default)
|
||||||
|
undolevels=5 global
|
||||||
|
undolevels=-123456 local
|
||||||
|
|
||||||
|
global value should be changed to 50
|
||||||
|
THREE: expecting global undolevels: 50, local undolevels: -123456 (default)
|
||||||
|
|
||||||
|
undolevels=50 global
|
||||||
|
undolevels=-123456 local
|
@ -738,6 +738,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
75,
|
||||||
/**/
|
/**/
|
||||||
74,
|
74,
|
||||||
/**/
|
/**/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user