Mercurial > vim-lawrencium
changeset 86:685dfc4b5862
Fix `Hgstatus` incorrectly saying nothing has changed.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Wed, 23 Apr 2014 20:36:34 -0700 |
parents | ac2c226f1bac |
children | e688b658ce5b |
files | plugin/lawrencium.vim |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/plugin/lawrencium.vim Sun Apr 20 20:30:01 2014 -0700 +++ b/plugin/lawrencium.vim Wed Apr 23 20:36:34 2014 -0700 @@ -873,7 +873,7 @@ " Open the Lawrencium buffer in a new split window of the right size. execute "rightbelow split " . l:status_path - if line('$') == 1 + if (line('$') == 1 && getline(1) == '') " Buffer is empty, which means there are not changes... " Quit and display a message. " TODO: figure out why the first `echom` doesn't show when alone.