Mercurial > vim-lawrencium
diff plugin/lawrencium.vim @ 64:e75ecde434d7
Display simple message when `Hgstatus` is empty.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Fri, 23 Nov 2012 14:32:39 -0800 |
parents | 02a1be804fe8 |
children | e8f252a7ed9e |
line wrap: on
line diff
--- 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"