Blockwise deletion with charwise choice (i.e. dva}) misses last brace #28163
Labels
bug-vim
wrong behavior inherited from vim
needs:vim-patch
upstream issue that needs to be fixed in vim first
Problem
When spanning multiple lines,
da}
acts likewise.One would use
dva}
to force charwise action.This mostly works, except that the last character is not deleted.
Steps to reproduce
Editing the text below (with
nvim --clean
):Position cursor in between braces.
Type
dva}
.Observe that file now contains
abcd}abcd
Expected behavior
File should contain
abcdabcd
.Neovim version (nvim -v)
NVIM v0.9.5, Also v0.10.0-dev-2574+g41fb98d6f
Vim (not Nvim) behaves the same?
Yes, 8.2 and 9.1
Operating system/version
Linux -- both Arch and Ubuntu
Terminal name/version
XTerm(390)
$TERM environment variable
xterm-256color (also happens inside tux)
Installation
original vim installed using package manager, nvim installed from source.
The text was updated successfully, but these errors were encountered: