Permalink
Browse files

fix expand tab error display. closes #8

  • Loading branch information...
1 parent b7d0e6c commit 2807a66cb89517ba7d4ec21209e64adcd097b548 @millermedeiros millermedeiros committed Oct 17, 2011
Showing with 2 additions and 3 deletions.
  1. +2 −3 plugin/statline.vim
View
@@ -109,9 +109,8 @@ function! StatlineTabWarning()
if !exists("b:statline_indent_warning")
let tabs = search('^\t', 'nw') != 0
" ignore spaces just before JavaDoc style comments
- let spaces = search('^ \(?<!*\)', 'nw') != 0
- let mixed = search('^\( \+\t\|\t\+ \+\(?<!*\)\)', 'nw') != 0
-
+ let spaces = search('^ \+\*\@!', 'nw') != 0
+ let mixed = search('^\( \+\t\|\t\+ \+\*\@!\)', 'nw') != 0
if mixed
let b:statline_indent_warning = '[mixed-indenting]'
elseif (spaces && !&et) || (tabs && &et)

0 comments on commit 2807a66

Please sign in to comment.