Permalink
Browse files

update statusline hax

  • Loading branch information...
1 parent 26a59f3 commit d2bd003456b7bce8a720841982af24c0a82362e8 @scrooloose committed Nov 1, 2008
Showing with 2 additions and 2 deletions.
  1. +2 −2 vimrc
View
4 vimrc
@@ -101,8 +101,8 @@ autocmd cursorhold,bufwritepost * unlet! b:statusline_tab_warning
"return an empty string if everything is fine
function! StatuslineTabWarning()
if !exists("b:statusline_tab_warning")
- let tabs = search('^\t\+[^ \t]*', 'nw') != 0
- let spaces = search('^ \+[^ \t]*', 'nw') != 0
+ let tabs = search('^\t', 'nw') != 0
+ let spaces = search('^ ', 'nw') != 0
if tabs && spaces
let b:statusline_tab_warning = '[mixed-indenting]'

0 comments on commit d2bd003

Please sign in to comment.