summaryrefslogtreecommitdiffstats
path: root/runtime/indent
diff options
context:
space:
mode:
authorYinzuo Jiang <jiangyinzuo@foxmail.com>2024-06-11 19:06:02 +0200
committerChristian Brabandt <cb@256bit.org>2024-06-11 19:07:16 +0200
commit2e3b2a8d8971850f15fb367ddb358a8565e15324 (patch)
treefe6047c55505a1ae58908a98f6ec14cf55b5e74c /runtime/indent
parent6ea3dfe8de8571ef16909bb605b8b599d9eff6f2 (diff)
runtime(kdl): use shiftwidth() instead of &tabstop in indent script
closes: #14962 Signed-off-by: Yinzuo Jiang <jiangyinzuo@foxmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
Diffstat (limited to 'runtime/indent')
-rw-r--r--runtime/indent/kdl.vim4
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/indent/kdl.vim b/runtime/indent/kdl.vim
index 2d24f18dff..b1b004d0a2 100644
--- a/runtime/indent/kdl.vim
+++ b/runtime/indent/kdl.vim
@@ -2,7 +2,7 @@
" Language: KDL
" Author: Aram Drevekenin <aram@poor.dev>
" Maintainer: Yinzuo Jiang <jiangyinzuo@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