runtime(vim): fix indentation after `:registers +`
Commit:
https://github.com/vim/vim/commit/08c39d2fe95b807d2174fb9f22c89ad965d7962d
Author: lacygoill <[email protected]>
Date: Thu Oct 9 19:37:45 2025 +0000
runtime(vim): fix indentation after `:registers +`
closes: https://github.com/vim/vim/issues/18528
Signed-off-by: lacygoill <[email protected]>
Signed-off-by: Christian Brabandt <[email protected]>
diff --git a/runtime/autoload/dist/vimindent.vim
b/runtime/autoload/dist/vimindent.vim
index 79a69e3b5..ec1482355 100644
--- a/runtime/autoload/dist/vimindent.vim
+++ b/runtime/autoload/dist/vimindent.vim
@@ -2,7 +2,7 @@ vim9script
# Language: Vim script
# Maintainer: github user lacygoill
-# Last Change: 2025 Sep 11
+# Last Change: 2025 Oct 09
#
# Includes changes from The Vim Project:
@@ -341,7 +341,8 @@ const PLUS_MINUS_COMMAND: string = '^\s*[+-]\s*$'
patterns =<< trim eval END
{'\'}<argd\%[elete]\s\+\*\s*$
\<[lt]\=cd!\=\s\+-\s*$
- \<norm\%[al]!\=\s*\S\+$
+ \<norm\%[al]!\=\s\+.*$
+ \<reg\%[isters]\%(\s\+\S\+\)\+$
\%(\<sil\%[ent]!\=\s\+\)\=\<[nvxsoilct]\=\%(nore\|un\)\=map!\=\s
\<set\%(\%[global]\|\%[local]\)\>.*,$
{PLUS_MINUS_COMMAND}
diff --git a/runtime/indent/testdir/vim.in b/runtime/indent/testdir/vim.in
index 0cccbbbb9..228bc79bf 100644
--- a/runtime/indent/testdir/vim.in
+++ b/runtime/indent/testdir/vim.in
@@ -218,3 +218,8 @@ endif
set path=.,,
set clipboard=unnamed,unnamedplus
" END_INDENT
+
+" START_INDENT
+registers +
+echo 'text'
+" END_INDENT
diff --git a/runtime/indent/testdir/vim.ok b/runtime/indent/testdir/vim.ok
index 7d490ad32..595cc279b 100644
--- a/runtime/indent/testdir/vim.ok
+++ b/runtime/indent/testdir/vim.ok
@@ -218,3 +218,8 @@ endif
set path=.,,
set clipboard=unnamed,unnamedplus
" END_INDENT
+
+" START_INDENT
+registers +
+echo 'text'
+" END_INDENT
--
--
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 [email protected].
To view this discussion visit
https://groups.google.com/d/msgid/vim_dev/E1v6wZV-004b4z-Ty%40256bit.org.