Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fix expand tab error display. closes #8

  • Loading branch information...
commit 2807a66cb89517ba7d4ec21209e64adcd097b548 1 parent b7d0e6c
@millermedeiros millermedeiros authored
Showing with 2 additions and 3 deletions.
  1. +2 −3 plugin/statline.vim
View
5 plugin/statline.vim
@@ -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)
Please sign in to comment.
Something went wrong with that request. Please try again.