Mercurial > vim
comparison src/register.c @ 25808:b1440083f0da v8.2.3439
patch 8.2.3439: deleted lines go to wrong yank register
Commit: https://github.com/vim/vim/commit/78eb9cce911dcd662182443e0920649ec1596d41
Author: Christian Brabandt <cb@256bit.org>
Date: Tue Sep 14 18:55:51 2021 +0200
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)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 14 Sep 2021 19:00:05 +0200 |
parents | ac88cd21ae88 |
children | 8ff483b86d9b |
comparison
equal
deleted
inserted
replaced
25807:703ae6848d39 | 25808:b1440083f0da |
---|---|
71 void | 71 void |
72 set_y_previous(yankreg_T *yreg) | 72 set_y_previous(yankreg_T *yreg) |
73 { | 73 { |
74 y_previous = yreg; | 74 y_previous = yreg; |
75 } | 75 } |
76 | |
77 void | |
78 reset_y_append(void) | |
79 { | |
80 y_append = FALSE; | |
81 } | |
82 | |
76 | 83 |
77 #if defined(FEAT_EVAL) || defined(PROTO) | 84 #if defined(FEAT_EVAL) || defined(PROTO) |
78 /* | 85 /* |
79 * Keep the last expression line here, for repeating. | 86 * Keep the last expression line here, for repeating. |
80 */ | 87 */ |