From 969ba4f3bc02423d1fd83edad3d9cd028060fc39 Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Sat, 9 Jan 2010 17:01:44 -0500 Subject: [PATCH] Add missing "abort" to some status functions --- plugin/fugitive.vim | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugin/fugitive.vim b/plugin/fugitive.vim index ab8bf03..b9d2c4a 100644 --- a/plugin/fugitive.vim +++ b/plugin/fugitive.vim @@ -460,7 +460,7 @@ call s:command("-bar -bang -nargs=? -complete=customlist,s:DirComplete Glcd :lcd call s:command("-bar Gstatus :execute s:Status()") -function! s:Status() +function! s:Status() abort try Gpedit : wincmd P @@ -471,7 +471,7 @@ function! s:Status() return '' endfunction -function! fugitive#reload_status() +function! fugitive#reload_status() abort let mytab = tabpagenr() for tab in [mytab] + range(1,tabpagenr('$')) for winnr in range(1,tabpagewinnr(tab,'$')) @@ -496,7 +496,7 @@ function! fugitive#reload_status() endfor endfunction -function! s:StageToggle(lnum1,lnum2) +function! s:StageToggle(lnum1,lnum2) abort try let output = '' for lnum in range(a:lnum1,a:lnum2)