aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Clason <c.clason@uni-graz.at>2024-06-11 19:33:06 +0200
committerChristian Clason <c.clason@uni-graz.at>2024-06-12 00:02:39 +0200
commit66a1e028e6edfc26e9546f1c68f3e4bdf159511e (patch)
tree83a6359c2c243303d305b51344a14bc0a94196a8
parent3ad977f01d97e84b576e6965c5c9e4f75c10cb35 (diff)
downloadrneovim-66a1e028e6edfc26e9546f1c68f3e4bdf159511e.tar.gz
rneovim-66a1e028e6edfc26e9546f1c68f3e4bdf159511e.tar.bz2
rneovim-66a1e028e6edfc26e9546f1c68f3e4bdf159511e.zip
vim-patch:2e3b2a8: runtime(kdl): use shiftwidth() instead of &tabstop in indent script
closes: vim/vim#14962 https://github.com/vim/vim/commit/2e3b2a8d8971850f15fb367ddb358a8565e15324 Co-authored-by: Yinzuo Jiang <jiangyinzuo@foxmail.com>
-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