Merge pull request #1330 from splinterofchaos/na-patches

N/A patches
This commit is contained in:
Justin M. Keyes 2014-10-23 14:22:01 -04:00
commit b8401550a7
3 changed files with 38 additions and 4 deletions

View File

@ -18,6 +18,7 @@ STARTTEST
:call FillBuffer() :call FillBuffer()
:call feedkeys(":earlier 10\n", 't') :call feedkeys(":earlier 10\n", 't')
:call UndoLevel() :call UndoLevel()
:set ft=unix
:%w! test.out :%w! test.out
:new two :new two
:0put ='TWO: expecting global undolevels: 5, local undolevels: 2 (first) then 10 (afterwards)' :0put ='TWO: expecting global undolevels: 5, local undolevels: 2 (first) then 10 (afterwards)'
@ -27,6 +28,7 @@ STARTTEST
:call UndoLevel() :call UndoLevel()
:setlocal ul=10 :setlocal ul=10
:call UndoLevel() :call UndoLevel()
:set ft=unix
:%w >> test.out :%w >> test.out
:wincmd p :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 :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
@ -35,6 +37,7 @@ STARTTEST
:1put ='global value should be changed to 50' :1put ='global value should be changed to 50'
:2put ='THREE: expecting global undolevels: 50, local undolevels: -123456 (default)' :2put ='THREE: expecting global undolevels: 50, local undolevels: -123456 (default)'
:call UndoLevel() :call UndoLevel()
:set ft=unix
:%w >> test.out :%w >> test.out
:"sleep 10 :"sleep 10
:" :"

View File

@ -8,6 +8,7 @@ STARTTEST
:" Test 'undofile': first a simple one-line change. :" Test 'undofile': first a simple one-line change.
:set nocompatible viminfo+=nviminfo visualbell :set nocompatible viminfo+=nviminfo visualbell
:set ul=100 undofile nomore :set ul=100 undofile nomore
:set ft=unix
:e! Xtestfile :e! Xtestfile
ggdGithis is one line:set ul=100 ggdGithis is one line:set ul=100
:s/one/ONE/ :s/one/ONE/

View File

@ -175,6 +175,36 @@ static char *(features[]) = {
}; };
static int included_patches[] = { static int included_patches[] = {
//488,
//487,
//486,
//485,
//484,
//483,
//482,
//481,
//480,
//479,
//478,
//477,
//476,
//475,
//474,
//473,
//472,
//471,
//470,
//469,
//468,
//467,
//465,
//464,
//463,
//462,
//461,
//460,
//459,
//458,
//457, //457,
//456, //456,
//455, //455,
@ -226,7 +256,7 @@ static int included_patches[] = {
//409 NA //409 NA
408, 408,
407, 407,
//406, 406,
405, 405,
//404 NA //404 NA
//403 NA //403 NA
@ -234,12 +264,12 @@ static int included_patches[] = {
//401 NA //401 NA
//400 NA //400 NA
//399 NA //399 NA
//398, //398 NA
397, 397,
//396, //396,
//395, //395,
//394, //394 NA
//393, //393 NA
392, 392,
391, 391,
//390, //390,