aboutsummaryrefslogtreecommitdiff
path: root/runtime/indent
diff options
context:
space:
mode:
authorChristian Clason <c.clason@uni-graz.at>2022-09-10 14:54:13 +0200
committerGitHub <noreply@github.com>2022-09-10 14:54:13 +0200
commit91a2e7a571c8615f2ffd9046687a6b438356db2b (patch)
tree802e0f70f6723283dc143f314357cf90ce72b7ab /runtime/indent
parent2a1c65b330c1cf65207cdd992529ad3bb1a197a4 (diff)
downloadrneovim-91a2e7a571c8615f2ffd9046687a6b438356db2b.tar.gz
rneovim-91a2e7a571c8615f2ffd9046687a6b438356db2b.tar.bz2
rneovim-91a2e7a571c8615f2ffd9046687a6b438356db2b.zip
vim-patch:71b6d3397649 (#20144)
Update runtime files https://github.com/vim/vim/commit/71b6d3397649fed68ef587aa863fcbdf5fdb057a
Diffstat (limited to 'runtime/indent')
-rw-r--r--runtime/indent/json.vim3
1 files changed, 3 insertions, 0 deletions
diff --git a/runtime/indent/json.vim b/runtime/indent/json.vim
index 09c7d7a85a..510f7e8f42 100644
--- a/runtime/indent/json.vim
+++ b/runtime/indent/json.vim
@@ -3,6 +3,7 @@
" Maintainer: Eli Parra <eli@elzr.com> https://github.com/elzr/vim-json
" Last Change: 2020 Aug 30
" https://github.com/jakar/vim-json/commit/20b650e22aa750c4ab6a66aa646bdd95d7cd548a#diff-e81fc111b2052e306d126bd9989f7b7c
+" 2022 Sep 07: b:undo_indent added by Doug Kearns
" Original Author: Rogerz Zhang <rogerz.zhang at gmail.com> http://github.com/rogerz/vim-json
" Acknowledgement: Based off of vim-javascript maintained by Darrick Wiebe
" http://www.vim.org/scripts/script.php?script_id=2765
@@ -22,6 +23,8 @@ setlocal nosmartindent
setlocal indentexpr=GetJSONIndent(v:lnum)
setlocal indentkeys=0{,0},0),0[,0],!^F,o,O,e
+let b:undo_indent = "setl inde< indk< si<"
+
" Only define the function once.
if exists("*GetJSONIndent")
finish