summaryrefslogtreecommitdiffstats
path: root/indent/cucumber.vim
diff options
context:
space:
mode:
Diffstat (limited to 'indent/cucumber.vim')
-rw-r--r--indent/cucumber.vim4
1 files changed, 2 insertions, 2 deletions
diff --git a/indent/cucumber.vim b/indent/cucumber.vim
index f6565b8a..a9960b02 100644
--- a/indent/cucumber.vim
+++ b/indent/cucumber.vim
@@ -3,7 +3,7 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'cucumber') == -
" Vim indent file
" Language: Cucumber
" Maintainer: Tim Pope <vimNOSPAM@tpope.org>
-" Last Change: 2013 May 30
+" Last Change: 2017 Jun 13
if exists("b:did_indent")
finish
@@ -29,7 +29,7 @@ function! GetCucumberIndent()
let line = getline(prevnonblank(v:lnum-1))
let cline = getline(v:lnum)
let nline = getline(nextnonblank(v:lnum+1))
- let sw = exists('*shiftwidth') ? shiftwidth() : &sw
+ let sw = exists('*shiftwidth') ? shiftwidth() : shiftwidth()
let syn = s:syn(prevnonblank(v:lnum-1))
let csyn = s:syn(v:lnum)
let nsyn = s:syn(nextnonblank(v:lnum+1))