1
0
forked from aniani/vim

patch 8.2.3439: deleted lines go to wrong yank register

Problem:    Deleted lines go to wrong yank register.
Solution:   Reset y_append when not calling get_yank_register(). (Christian
            Brabandt, closes #8872)
This commit is contained in:
Christian Brabandt
2021-09-14 18:55:51 +02:00
committed by Bram Moolenaar
parent 5dfe467432
commit 78eb9cce91
5 changed files with 64 additions and 0 deletions

View File

@@ -695,6 +695,8 @@ op_delete(oparg_T *oap)
if (op_yank(oap, TRUE, FALSE) == OK) // yank without message
did_yank = TRUE;
}
else
reset_y_append(); // not appending to unnamed register
/*
* Put deleted text into register 1 and shift number registers if the