# HG changeset patch # User Christian Brabandt # Date 1718126106 -7200 # Node ID a52b970cc0056594075a42d59095b70bb77d1338 # Parent d41fd597082f7a104c6862ca00984c01f4a0c969 runtime(kdl): use shiftwidth() instead of &tabstop in indent script Commit: https://github.com/vim/vim/commit/2e3b2a8d8971850f15fb367ddb358a8565e15324 Author: Yinzuo Jiang 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 Signed-off-by: Christian Brabandt diff --git a/runtime/indent/kdl.vim b/runtime/indent/kdl.vim --- a/runtime/indent/kdl.vim +++ b/runtime/indent/kdl.vim @@ -2,7 +2,7 @@ " Language: KDL " Author: Aram Drevekenin " Maintainer: Yinzuo Jiang -" 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