Browse files

dont show empty brackets when theres no &fenc

  • Loading branch information...
scrooloose committed Feb 1, 2009
1 parent 3c8c0ff commit 410f2f92e8627305ce68391888045cb74c695ddc
Showing with 1 addition and 1 deletion.
  1. +1 −1 vimrc
2 vimrc
@@ -27,7 +27,7 @@ set statusline+=%*
"display a warning if file encoding isnt utf-8
set statusline+=%#warningmsg#
-set statusline+=%{&fenc!='utf-8'?'['.&fenc.']':''}
+set statusline+=%{(&fenc!='utf-8'&&&fenc!='')?'['.&fenc.']':''}
set statusline+=%*
set statusline+=%h "help file flag

0 comments on commit 410f2f9

Please sign in to comment.