Fix setting of foldmethod in :Gstatus

Closes #300.
This commit is contained in:
Tim Pope 2013-01-30 13:13:28 -05:00
parent 1601ffc1e0
commit 1bce4328e4

View File

@ -646,8 +646,8 @@ call s:command("-bar Gstatus :execute s:Status()")
function! s:Status() abort
try
Gpedit :
set foldmethod=syntax foldlevel=1
wincmd P
set foldmethod=syntax foldlevel=1
nnoremap <buffer> <silent> q :<C-U>bdelete<CR>
catch /^fugitive:/
return 'echoerr v:errmsg'