mirror of
https://github.com/vim/vim.git
synced 2025-10-02 05:04:20 -04:00
patch 9.1.0574: ex: wrong handling of commands after bar
Problem: ex: wrong handling of commands after bar Solution: for :append, :insert and :change use the text after the bar as input for those commands. This is what POSIX requests. (Mohamed Akram) See the POSIX Spec: https://pubs.opengroup.org/onlinepubs/9699919799/utilities/ex.html#tag_20_40_13_03 Section 12.c closes: #15229 Signed-off-by: Mohamed Akram <mohd.akram@outlook.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
committed by
Christian Brabandt
parent
c5e24ee24b
commit
8c446da349
@@ -5401,7 +5401,11 @@ separate_nextcmd(exarg_T *eap, int keep_backslash)
|
||||
&& in_vim9script()
|
||||
&& !(eap->argt & EX_NOTRLCOM)
|
||||
&& p > eap->cmd && VIM_ISWHITE(p[-1]))
|
||||
|| *p == '|' || *p == '\n')
|
||||
|| (*p == '|'
|
||||
&& eap->cmdidx != CMD_append
|
||||
&& eap->cmdidx != CMD_change
|
||||
&& eap->cmdidx != CMD_insert)
|
||||
|| *p == '\n')
|
||||
{
|
||||
/*
|
||||
* We remove the '\' before the '|', unless EX_CTRLV is used
|
||||
|
Reference in New Issue
Block a user