diff options
| author | Antoine <ajamadec@gmail.com> | 2025-06-12 18:18:23 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-06-12 09:18:23 -0700 |
| commit | ac12dc49cc35241acc6d4ea36f035ab5a5d9cfe3 (patch) | |
| tree | b3c7b4991906e0c0165ecec8500ff853f4ff708c /runtime/lua/vim | |
| parent | d86d4bacc14bc6ab51b3173f3644d703f53ffbde (diff) | |
| download | rneovim-ac12dc49cc35241acc6d4ea36f035ab5a5d9cfe3.tar.gz rneovim-ac12dc49cc35241acc6d4ea36f035ab5a5d9cfe3.tar.bz2 rneovim-ac12dc49cc35241acc6d4ea36f035ab5a5d9cfe3.zip | |
fix(clipboard): enable cache for function providers #34470
Problem:
With these settings, copy/pasting `blockwise-visual` (with `CTRL+V`)
incorrectly pastes as a `linewise` mode because `regtype` is ignored:
vim.opt.clipboard = 'unnamedplus'
vim.g.clipboard = 'osc52'
To reproduce: press `CTRL+V` and select some characters press `p` and
observe that it is pasted in `linewise` mode.
Solution:
Enable the [clipboard.vim](https://github.com/neovim/neovim/blob/master/runtime/autoload/provider/clipboard.vim#L281-L283))
cache for function providers, so that `regtype` is maintained for the OSC52
clipboard provider.
Diffstat (limited to 'runtime/lua/vim')
0 files changed, 0 insertions, 0 deletions