Skip to content
Snippets Groups Projects
Commit 289b907e authored by Jerome Reybert's avatar Jerome Reybert
Browse files

plugin/magit.vim: open buffer silently (still some --No lines in buffer-- messages)

parent 258c7264
No related branches found
No related tags found
No related merge requests found
......@@ -609,11 +609,11 @@ function! magit#show_magit(display, ...)
elseif ( a:display == 'c' )
if ( !bufexists(buffer_name) )
if ( bufname("%") == "" )
keepalt enew
silent keepalt enew
else
enew
silent enew
endif
execute "file " . buffer_name
silent execute "file " . buffer_name
endif
else
throw 'parameter_error'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment