runtime(kdl): use shiftwidth() instead of &tabstop in indent script
Commit:
https://github.com/vim/vim/commit/2e3b2a8d8971850f15fb367ddb358a8565e15324
Author: Yinzuo Jiang <[email protected]>
Date: Tue Jun 11 19:06:02 2024 +0200
runtime(kdl): use shiftwidth() instead of &tabstop in indent script
closes: https://github.com/vim/vim/issues/14962
Signed-off-by: Yinzuo Jiang <[email protected]>
Signed-off-by: Christian Brabandt <[email protected]>
diff --git a/runtime/indent/kdl.vim b/runtime/indent/kdl.vim
index 2d24f18df..b1b004d0a 100644
--- a/runtime/indent/kdl.vim
+++ b/runtime/indent/kdl.vim
@@ -2,7 +2,7 @@
" Language: KDL
" Author: Aram Drevekenin <[email protected]>
" Maintainer: Yinzuo Jiang <[email protected]>
-" Last Change: 2024-06-10
+" Last Change: 2024-06-11
" Only load this indent file when no other was loaded.
if exists("b:did_indent")
@@ -19,7 +19,7 @@ function! KdlIndent(...)
let previous = getline(previousNum)
if previous =~ "{" && previous !~ "}" && line !~ "}" && line !~ ":$"
- return indent(previousNum) + &tabstop
+ return indent(previousNum) + shiftwidth()
else
return indent(previousNum)
endif
--
--
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/E1sH55O-006g4o-HG%40256bit.org.