runtime(kdl): use shiftwidth() instead of &tabstop in indent script

Commit: 
https://github.com/vim/vim/commit/2e3b2a8d8971850f15fb367ddb358a8565e15324
Author: Yinzuo Jiang <jiangyin...@foxmail.com>
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 <jiangyin...@foxmail.com>
    Signed-off-by: Christian Brabandt <c...@256bit.org>

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 <a...@poor.dev>
 " Maintainer:       Yinzuo Jiang <jiangyin...@foxmail.com>
-" 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 vim_dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/E1sH55O-006g4o-HG%40256bit.org.

Raspunde prin e-mail lui