From: dkearns Date: Tue, 23 Jan 2024 19:33:32 +0000 (+1100) Subject: runtime(qml): Use shiftwidth() in indent plugin (#13908) X-Git-Tag: v9.1.0045~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=50dbe16cd8180eb03e8589694b574d610e6d562c;p=thirdparty%2Fvim.git runtime(qml): Use shiftwidth() in indent plugin (#13908) Fixes #13907 Signed-off-by: Doug Kearns Signed-off-by: Christian Brabandt --- diff --git a/runtime/indent/qml.vim b/runtime/indent/qml.vim index 8c9fa91250..cf0ba41957 100644 --- a/runtime/indent/qml.vim +++ b/runtime/indent/qml.vim @@ -1,7 +1,7 @@ " Vim indent file " Language: QML " Maintainer: Chase Knowlden -" Last Change: 2023 Aug 16 +" Last Change: 2024 Jan 24 by Vim Project " " Improved JavaScript indent script. @@ -40,10 +40,10 @@ function! s:GetQmlIndent() " bracket/brace/paren blocks if pline =~ '[{[(]$' - let ind += &sw + let ind += shiftwidth() endif if line =~ '^[}\])]' - let ind -= &sw + let ind -= shiftwidth() endif " '/*' comments