1
0
forked from aniani/vim

patch 9.1.1215: Patch 9.1.1213 has some issues

Problem:  Patch 9.1.1213 has some issues
Solution: revert it for now

This reverts commit 250739d442.

Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
Christian Brabandt
2025-03-16 21:39:58 +01:00
parent 28e40a7b55
commit 762a79e15c
18 changed files with 83 additions and 266 deletions

View File

@@ -231,7 +231,6 @@ static void ex_winpos(exarg_T *eap);
#endif
static void ex_operators(exarg_T *eap);
static void ex_put(exarg_T *eap);
static void ex_iput(exarg_T *eap);
static void ex_copymove(exarg_T *eap);
static void ex_submagic(exarg_T *eap);
static void ex_join(exarg_T *eap);
@@ -2373,7 +2372,7 @@ do_one_cmd(
goto doend;
}
#endif
if (valid_yank_reg(*ea.arg, ((ea.cmdidx != CMD_put && ea.cmdidx != CMD_iput)
if (valid_yank_reg(*ea.arg, (ea.cmdidx != CMD_put
&& !IS_USER_CMDIDX(ea.cmdidx))))
{
ea.regname = *ea.arg++;
@@ -8521,25 +8520,6 @@ ex_put(exarg_T *eap)
PUT_LINE|PUT_CURSLINE);
}
/*
* ":iput".
*/
static void
ex_iput(exarg_T *eap)
{
// ":0iput" works like ":1iput!".
if (eap->line2 == 0)
{
eap->line2 = 1;
eap->forceit = TRUE;
}
curwin->w_cursor.lnum = eap->line2;
check_cursor_col();
do_put(eap->regname, NULL, eap->forceit ? BACKWARD : FORWARD, 1L,
PUT_LINE|PUT_CURSLINE
|PUT_FIXINDENT);
}
/*
* Handle ":copy" and ":move".
*/