Mercurial > vim
comparison src/register.c @ 27428:3f8a57b8c7d8 v8.2.4242
patch 8.2.4242: put in Visual mode cannot be repeated
Commit: https://github.com/vim/vim/commit/fb55207ed17918c8a2a6cadf5ad9d5fcf686a7ab
Author: Shougo Matsushita <Shougo.Matsu@gmail.com>
Date: Fri Jan 28 16:01:13 2022 +0000
patch 8.2.4242: put in Visual mode cannot be repeated
Problem: Put in Visual mode cannot be repeated.
Solution: Use "P" to put without yanking the deleted text into the unnamed
register. (Shougo Matsushita, closes #9591)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 28 Jan 2022 17:15:03 +0100 |
parents | 41e0dcf38521 |
children | fb4c30606b4a |
comparison
equal
deleted
inserted
replaced
27427:9cf9ba0101f6 | 27428:3f8a57b8c7d8 |
---|---|
52 { | 52 { |
53 return &y_regs[reg]; | 53 return &y_regs[reg]; |
54 } | 54 } |
55 #endif | 55 #endif |
56 | 56 |
57 #if defined(FEAT_CLIPBOARD) || defined(FEAT_VIMINFO) || defined(FEAT_EVAL) || defined(PROTO) | |
58 yankreg_T * | 57 yankreg_T * |
59 get_y_current(void) | 58 get_y_current(void) |
60 { | 59 { |
61 return y_current; | 60 return y_current; |
62 } | 61 } |
63 #endif | 62 |
64 | |
65 #if defined(FEAT_CLIPBOARD) || defined(FEAT_VIMINFO) || defined(PROTO) | |
66 yankreg_T * | 63 yankreg_T * |
67 get_y_previous(void) | 64 get_y_previous(void) |
68 { | 65 { |
69 return y_previous; | 66 return y_previous; |
70 } | 67 } |
71 #endif | 68 |
72 | |
73 #if defined(FEAT_CLIPBOARD) || defined(PROTO) | |
74 void | 69 void |
75 set_y_current(yankreg_T *yreg) | 70 set_y_current(yankreg_T *yreg) |
76 { | 71 { |
77 y_current = yreg; | 72 y_current = yreg; |
78 } | 73 } |
79 #endif | 74 |
80 | |
81 #if defined(FEAT_CLIPBOARD) || defined(FEAT_VIMINFO) || defined(PROTO) | |
82 void | 75 void |
83 set_y_previous(yankreg_T *yreg) | 76 set_y_previous(yankreg_T *yreg) |
84 { | 77 { |
85 y_previous = yreg; | 78 y_previous = yreg; |
86 } | 79 } |
87 #endif | |
88 | 80 |
89 void | 81 void |
90 reset_y_append(void) | 82 reset_y_append(void) |
91 { | 83 { |
92 y_append = FALSE; | 84 y_append = FALSE; |