runtime(qml): Use shiftwidth() in indent plugin (#13908)
Commit:
https://github.com/vim/vim/commit/50dbe16cd8180eb03e8589694b574d610e6d562c
Author: dkearns <[email protected]>
Date: Wed Jan 24 06:33:32 2024 +1100
runtime(qml): Use shiftwidth() in indent plugin
(https://github.com/vim/vim/issues/13908)
Fixes https://github.com/vim/vim/issues/13907
Signed-off-by: Doug Kearns <[email protected]>
Signed-off-by: Christian Brabandt <[email protected]>
diff --git a/runtime/indent/qml.vim b/runtime/indent/qml.vim
index 8c9fa9125..cf0ba4195 100644
--- a/runtime/indent/qml.vim
+++ b/runtime/indent/qml.vim
@@ -1,7 +1,7 @@
" Vim indent file
" Language: QML
" Maintainer: Chase Knowlden <[email protected]>
-" 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
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/vim_dev/E1rSMhl-009XTk-6i%40256bit.org.