0
0
mirror of https://github.com/vim/vim.git synced 2025-10-16 07:24:23 -04:00

runtime(vim): fix indentation after :registers +

closes: #18528

Signed-off-by: lacygoill <lacygoill@lacygoill.me>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
lacygoill
2025-10-09 19:37:45 +00:00
committed by Christian Brabandt
parent ed93df4935
commit 08c39d2fe9
3 changed files with 13 additions and 2 deletions

View File

@@ -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}

View File

@@ -218,3 +218,8 @@ endif
set path=.,,
set clipboard=unnamed,unnamedplus
" END_INDENT
" START_INDENT
registers +
echo 'text'
" END_INDENT

View File

@@ -218,3 +218,8 @@ endif
set path=.,,
set clipboard=unnamed,unnamedplus
" END_INDENT
" START_INDENT
registers +
echo 'text'
" END_INDENT