summaryrefslogtreecommitdiffstats
path: root/indent
diff options
context:
space:
mode:
authorAdam Stankiewicz <sheerun@sher.pl>2016-01-28 18:07:33 +0100
committerAdam Stankiewicz <sheerun@sher.pl>2016-01-28 18:07:33 +0100
commitb4a6290b42701b09069e052d1c3c1aa904752254 (patch)
tree5346b7db38c0c93ccbb338a96ede53522ff114f3 /indent
parentc324a086b2e184f0275c46e97acbf95376683fde (diff)
downloadvim-polyglot-b4a6290b42701b09069e052d1c3c1aa904752254.tar.gz
vim-polyglot-b4a6290b42701b09069e052d1c3c1aa904752254.zip
Update
Diffstat (limited to 'indent')
-rw-r--r--indent/eruby.vim2
1 files changed, 1 insertions, 1 deletions
diff --git a/indent/eruby.vim b/indent/eruby.vim
index 07cff818..82313a08 100644
--- a/indent/eruby.vim
+++ b/indent/eruby.vim
@@ -92,7 +92,7 @@ function! GetErubyIndent(...)
if line =~# '^\s*<%[=#-]\=\s*$' && cline !~# '^\s*end\>'
let ind = ind + sw
endif
- if line !~# '^\s*<%' && line =~# '%>\s*$'
+ if line !~# '^\s*<%' && line =~# '%>\s*$' && line !~# '^\s*end\>'
let ind = ind - sw
endif
if cline =~# '^\s*[-=]\=%>\s*$'