Add missing "abort" to some status functions

This commit is contained in:
Tim Pope 2010-01-09 17:01:44 -05:00
parent eea103b042
commit 969ba4f3bc

View File

@ -460,7 +460,7 @@ call s:command("-bar -bang -nargs=? -complete=customlist,s:DirComplete Glcd :lcd
call s:command("-bar Gstatus :execute s:Status()") call s:command("-bar Gstatus :execute s:Status()")
function! s:Status() function! s:Status() abort
try try
Gpedit : Gpedit :
wincmd P wincmd P
@ -471,7 +471,7 @@ function! s:Status()
return '' return ''
endfunction endfunction
function! fugitive#reload_status() function! fugitive#reload_status() abort
let mytab = tabpagenr() let mytab = tabpagenr()
for tab in [mytab] + range(1,tabpagenr('$')) for tab in [mytab] + range(1,tabpagenr('$'))
for winnr in range(1,tabpagewinnr(tab,'$')) for winnr in range(1,tabpagewinnr(tab,'$'))
@ -496,7 +496,7 @@ function! fugitive#reload_status()
endfor endfor
endfunction endfunction
function! s:StageToggle(lnum1,lnum2) function! s:StageToggle(lnum1,lnum2) abort
try try
let output = '' let output = ''
for lnum in range(a:lnum1,a:lnum2) for lnum in range(a:lnum1,a:lnum2)