# HG changeset patch # User Ludovic Chabant # Date 1324681630 28800 # Node ID 35d097b9513c394ae600e8d7b0df8d85b7c6aa0e # Parent 1ce59d5aa5e9dda7f508518f6e5c533ee46f101d Fixed a bug with the status line indicator. diff -r 1ce59d5aa5e9 -r 35d097b9513c plugin/lawrencium.vim --- 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