summaryrefslogtreecommitdiffstats
path: root/indent
diff options
context:
space:
mode:
authorAdam Stankiewicz <sheerun@sher.pl>2014-02-04 19:13:11 +0100
committerAdam Stankiewicz <sheerun@sher.pl>2014-02-04 19:13:11 +0100
commitfa573209195e94d621f50bfe37cf9007f6e8d720 (patch)
tree1193f7849873686760ad28d64add167f41c69654 /indent
parent9a2b4f5cd8bcb03f1344fa9f81b59efb84a91889 (diff)
downloadvim-polyglot-fa573209195e94d621f50bfe37cf9007f6e8d720.tar.gz
vim-polyglot-fa573209195e94d621f50bfe37cf9007f6e8d720.zip
Update
Diffstat (limited to 'indent')
-rw-r--r--indent/eruby.vim6
1 files changed, 5 insertions, 1 deletions
diff --git a/indent/eruby.vim b/indent/eruby.vim
index 19109ceb..5f323857 100644
--- a/indent/eruby.vim
+++ b/indent/eruby.vim
@@ -19,6 +19,9 @@ else
endif
unlet! b:did_indent
+" Force HTML indent to not keep state.
+let b:html_indent_usestate = 0
+
if &l:indentexpr == ''
if &l:cindent
let &l:indentexpr = 'cindent(v:lnum)'
@@ -53,7 +56,8 @@ function! GetErubyIndent(...)
else
exe "let ind = ".b:eruby_subtype_indentexpr
- " Workaround for Andy Wokula's HTML indent
+ " Workaround for Andy Wokula's HTML indent. This should be removed after
+ " some time, since the newest version is fixed in a different way.
if b:eruby_subtype_indentexpr =~# '^HtmlIndent('
\ && exists('b:indent')
\ && type(b:indent) == type({})