:Ge in blank buffer goes to status

This commit is contained in:
Tim Pope committed 2011-08-25 19:08:23 -04:00
1 parent 0a24e781b2
commit 9dfa357770
1 file changed
+2
+2
View File
@@ -999,6 +999,8 @@ function! s:Edit(cmd,bang,...) abort
return ''
elseif a:0
let file = s:buffer().expand(a:1)
elseif expand('%') ==# ''
let file = ':'
elseif s:buffer().commit() ==# '' && s:buffer().path('/') !~# '^/.git\>'
let file = s:buffer().path(':')
else