diff options
| author | IcyJerry <1795701794@qq.com> | 2026-10-13 20:53:34 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-10-13 08:53:34 -0400 |
| commit | f440b689be1b801a39344e9ad5a365302d70e6d1 (patch) | |
| tree | 642dcf7f475e0d587ec5178408e8c8aa202d69a6 /runtime/lua/vim/_ftplugin/lua.lua | |
| parent | 12eb3fdfa10ae3714754ea0f591b1ed934140158 (diff) | |
| download | rneovim-f440b689be1b801a39344e9ad5a365302d70e6d1.tar.gz rneovim-f440b689be1b801a39344e9ad5a365302d70e6d1.tar.bz2 rneovim-f440b689be1b801a39344e9ad5a365302d70e6d1.zip | |
fix(ops): '] and yank width of forced-blockwise motion #42321
Problem:
`g@<C-v>j` and `y<C-v>j` set '] one char short of the block corner, so
'operatorfunc' cannot get the block. With 'virtualedit' "block", "y"
also yanks a short last line one column narrow.
Solution:
- Decide `inclusive` from the motion's own type, before get_op_vcol()
makes it blockwise (like Vim).
- Never exclude the end of a block from '] (`g@<C-v>l`): a block
includes its corner.
Co-authored-by: IcyJerry <263879414+Icyjerry@users.noreply.github.com>
Co-authored-by: Nagato Yuzuru <nagato@yuzuru.me>
Diffstat (limited to 'runtime/lua/vim/_ftplugin/lua.lua')
0 files changed, 0 insertions, 0 deletions