Mercurial > vim-lawrencium
changeset 30:35d097b9513c
Fixed a bug with the status line indicator.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Fri, 23 Dec 2011 15:07:10 -0800 |
parents | 1ce59d5aa5e9 |
children | 799c7b57e19a |
files | plugin/lawrencium.vim |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/plugin/lawrencium.vim Tue Dec 20 16:16:52 2011 -0800 +++ b/plugin/lawrencium.vim Fri Dec 23 15:07:10 2011 -0800 @@ -713,8 +713,11 @@ endif let l:prefix = (a:0 > 0 ? a:1 : '') let l:suffix = (a:0 > 1 ? a:2 : '') + let l:branch = 'default' let l:branch_file = s:hg_repo().GetFullPath('.hg/branch') - let l:branch = readfile(l:branch_file)[0] + if filereadable(l:branch_file) + let l:branch = readfile(l:branch_file)[0] + endif return l:prefix . l:branch . l:suffix endfunction