mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-15 14:53:51 -05:00
:Ge in blank buffer goes to status
This commit is contained in:
@@ -999,6 +999,8 @@ function! s:Edit(cmd,bang,...) abort
|
|||||||
return ''
|
return ''
|
||||||
elseif a:0
|
elseif a:0
|
||||||
let file = s:buffer().expand(a:1)
|
let file = s:buffer().expand(a:1)
|
||||||
|
elseif expand('%') ==# ''
|
||||||
|
let file = ':'
|
||||||
elseif s:buffer().commit() ==# '' && s:buffer().path('/') !~# '^/.git\>'
|
elseif s:buffer().commit() ==# '' && s:buffer().path('/') !~# '^/.git\>'
|
||||||
let file = s:buffer().path(':')
|
let file = s:buffer().path(':')
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user