vim-patch:7.4.1660

Problem:    has('patch-7.4.1') doesn't work.
Solution:   Fix off-by-one error. (Thinca)

819821c5a9
This commit is contained in:
Shougo Matsushita
2016-11-22 07:24:26 +09:00
parent 5f0260808c
commit d152e2f3fd
4 changed files with 18 additions and 17 deletions

View File

@@ -638,15 +638,6 @@ describe('exists() and has() functions', function()
call TestExists()
function TestHas()
redir >> test.out
for pl in ['6.9.999', '7.1.999', '7.4.123', '9.1.0', '9.9.1']
echo 'has patch ' . pl . ': ' . has('patch-' . pl)
endfor
redir END
endfunc
call TestHas()
edit! test.out
set ff=unix
]=])
@@ -858,12 +849,7 @@ describe('exists() and has() functions', function()
OK
g:footest#x = 1
footest#F() 0
UndefFun() 0
has patch 6.9.999: 1
has patch 7.1.999: 1
has patch 7.4.123: 1
has patch 9.1.0: 0
has patch 9.9.1: 0]])
UndefFun() 0]])
end)
end)