diff options
author | Adam Stankiewicz <sheerun@sher.pl> | 2020-03-02 01:39:59 +0100 |
---|---|---|
committer | Adam Stankiewicz <sheerun@sher.pl> | 2020-03-02 01:39:59 +0100 |
commit | 9cd6e8533b69fd57d6c487ee8a85f21f019e518b (patch) | |
tree | 9cd5a445a952830407548c5cf85039f894687718 /indent/haml.vim | |
parent | 43ecbfae50fe8dc2a64039af2ee04249e8836cd0 (diff) | |
download | vim-polyglot-9cd6e8533b69fd57d6c487ee8a85f21f019e518b.tar.gz vim-polyglot-9cd6e8533b69fd57d6c487ee8a85f21f019e518b.zip |
Update
Diffstat (limited to 'indent/haml.vim')
-rw-r--r-- | indent/haml.vim | 4 |
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 |