Merge pull request #37 from justinmk/fix703
Fix condition for Vim <= 7.3
This commit is contained in:
commit
bd3b517235
@ -91,14 +91,14 @@ function! repeat#run(count)
|
|||||||
let cnt = c == -1 ? "" : (a:count ? a:count : (c ? c : ''))
|
let cnt = c == -1 ? "" : (a:count ? a:count : (c ? c : ''))
|
||||||
if (v:version > 703 || (v:version == 703 && has('patch100')))
|
if (v:version > 703 || (v:version == 703 && has('patch100')))
|
||||||
exe 'norm ' . r . cnt . s
|
exe 'norm ' . r . cnt . s
|
||||||
elseif
|
else
|
||||||
call feedkeys(r . cnt, 'n')
|
call feedkeys(r . cnt, 'n')
|
||||||
call feedkeys(s)
|
call feedkeys(s)
|
||||||
endif
|
endif
|
||||||
else
|
else
|
||||||
if (v:version > 703 || (v:version == 703 && has('patch100')))
|
if (v:version > 703 || (v:version == 703 && has('patch100')))
|
||||||
exe 'norm! '.(a:count ? a:count : '') . '.'
|
exe 'norm! '.(a:count ? a:count : '') . '.'
|
||||||
elseif
|
else
|
||||||
call feedkeys((a:count ? a:count : '') . '.', 'n')
|
call feedkeys((a:count ? a:count : '') . '.', 'n')
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
Loading…
Reference in New Issue
Block a user