Actions on text objects are not performed if the cursor is positioned before the text object
rwmpelstilzchen opened this issue · 2 comments
Describe the bug
Following this I did some testing, and found that if the cursor is positioned in the text object, actions are performed as expected, but if it is positioned before the text object, they are ignored. The default (Neo)Vim behaviour is that if a text-object action is called when the cursor is not within a text object of that type, it is performed on the next text object of the same type in the same line, if there is one.
Steps to reproduce
Consider this line:
hello "world" ~blabla~
If the cursor is at the beginning of the line and di"
is called, the word world
will be deleted. Now, if di~
is called, nothing happens (unless the cursor is within ~blabla~
, of course).
Expected behavior
The expected behaviour would be for ~blabla~
to be deleted.
Emacs functionality
No response
Minimal init.lua
-- Enter your minimal_init.lua here
Screenshots and recordings
No response
OS / Distro
Arch Linux
Neovim version/commit
0.9.4
Additional context
No response
I'll take a look at this by this weekend and see about resolving it if nobody else does as a heads up.
Thx ^_^