Closed Subjective closed 1 year ago
Thanks for the issue!
I can't fully reproduce the issue:
vii
(with 'mini.indentscope' default config) does put cursor on the first non-blank character of the last line.vai
also puts cursor on the first non-blank character of the last line.So I don't see this as an inconsistency issue within 'mini.indentscope'.
Furthermore:
vi)
), then it will place cursor at the last character. If you use built-in linewise (like vip
), then it will place on the first column of the last line.:h operator-doubled
).Having this in mind, I'll revisit it later to possibly update to be more align with 'mini.ai' design.
Alright, thanks for the explanation, it all makes sense now :)
Contributing guidelines
Module(s)
Indentscope
Description
This is purely aesthetic, but when visually selecting "inside" an object scope text object, the cursor is placed at the first non-whitespace character of the last line instead of at the end of the overal selection. Selecting "around" any object scope places the cursor at the end, so it seems inconsistent for selecting "inside" to not behave the same, especially since every other text object I know of places the cursor at the end of the visual selection.
Neovim version
NVIM v0.10.0-dev-886+gb263c73b0
Steps to reproduce
vio
to visually select "inside" the object scopeExpected behavior
I would expect the cursor to be placed at the end of the selection.
Actual behavior
The cursor is placed at the first non-whitespace character of the last line of the selection.