summaryrefslogtreecommitdiffstats
path: root/indent/haml.vim
diff options
context:
space:
mode:
Diffstat (limited to 'indent/haml.vim')
-rw-r--r--indent/haml.vim4
1 files changed, 2 insertions, 2 deletions
diff --git a/indent/haml.vim b/indent/haml.vim
index 00ed7c83..ea6f5d17 100644
--- a/indent/haml.vim
+++ b/indent/haml.vim
@@ -3,7 +3,7 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'haml') == -1
" Vim indent file
" Language: Haml
" Maintainer: Tim Pope <vimNOSPAM@tpope.org>
-" Last Change: 2016 Aug 29
+" Last Change: 2017 Jun 13
if exists("b:did_indent")
finish
@@ -39,7 +39,7 @@ function! GetHamlIndent()
let line = substitute(line,'^\s\+','','')
let indent = indent(lnum)
let cindent = indent(v:lnum)
- let sw = exists('*shiftwidth') ? shiftwidth() : &sw
+ let sw = shiftwidth()
if cline =~# '\v^-\s*%(elsif|else|when)>'
let indent = cindent < indent ? cindent : indent - sw
endif