# HG changeset patch # User Ludovic Chabant # Date 1353709959 28800 # Node ID e75ecde434d7429558eec69f25386433b244b6c8 # Parent 02a1be804fe8cd7015ccdca7a2a9c8c4347e68c1 Display simple message when `Hgstatus` is empty. diff -r 02a1be804fe8 -r e75ecde434d7 plugin/lawrencium.vim --- a/plugin/lawrencium.vim Fri Nov 23 14:18:59 2012 -0800 +++ b/plugin/lawrencium.vim Fri Nov 23 14:32:39 2012 -0800 @@ -648,8 +648,11 @@ if line('$') == 1 " Buffer is empty, which means there are not changes... " Quit and display a message. - q + " TODO: figure out why the first `echom` doesn't show when alone. + bdelete echom "Nothing was modified." + echom "" + return endif execute "setlocal noreadonly"