Skip to content

Commit 08c39d2

Browse files
lacygoillchrisbra
authored andcommitted
runtime(vim): fix indentation after :registers +
closes: #18528 Signed-off-by: lacygoill <lacygoill@lacygoill.me> Signed-off-by: Christian Brabandt <cb@256bit.org>
1 parent ed93df4 commit 08c39d2

File tree

3 files changed

+13
-2
lines changed

3 files changed

+13
-2
lines changed

runtime/autoload/dist/vimindent.vim

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ vim9script
22

33
# Language: Vim script
44
# Maintainer: github user lacygoill
5-
# Last Change: 2025 Sep 11
5+
# Last Change: 2025 Oct 09
66
#
77
# Includes changes from The Vim Project:
88

@@ -341,7 +341,8 @@ const PLUS_MINUS_COMMAND: string = '^\s*[+-]\s*$'
341341
patterns =<< trim eval END
342342
{'\'}<argd\%[elete]\s\+\*\s*$
343343
\<[lt]\=cd!\=\s\+-\s*$
344-
\<norm\%[al]!\=\s*\S\+$
344+
\<norm\%[al]!\=\s\+.*$
345+
\<reg\%[isters]\%(\s\+\S\+\)\+$
345346
\%(\<sil\%[ent]!\=\s\+\)\=\<[nvxsoilct]\=\%(nore\|un\)\=map!\=\s
346347
\<set\%(\%[global]\|\%[local]\)\>.*,$
347348
{PLUS_MINUS_COMMAND}

runtime/indent/testdir/vim.in

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,3 +218,8 @@ endif
218218
set path=.,,
219219
set clipboard=unnamed,unnamedplus
220220
" END_INDENT
221+
222+
" START_INDENT
223+
registers +
224+
echo 'text'
225+
" END_INDENT

runtime/indent/testdir/vim.ok

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,3 +218,8 @@ endif
218218
set path=.,,
219219
set clipboard=unnamed,unnamedplus
220220
" END_INDENT
221+
222+
" START_INDENT
223+
registers +
224+
echo 'text'
225+
" END_INDENT

0 commit comments

Comments
 (0)