runtime(qml): Use shiftwidth() in indent plugin (#13908)

Fixes #13907

Signed-off-by: Doug Kearns <dougkearns@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
dkearns
2024-01-24 06:33:32 +11:00
committed by GitHub
parent 7de2b7c891
commit 50dbe16cd8

View File

@ -1,7 +1,7 @@
" Vim indent file
" Language: QML
" Maintainer: Chase Knowlden <haroldknowlden@gmail.com>
" 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