Open bew opened 2 years ago
Thank you for the feedback. I've never used ai
/ ii
after selecting some area, so that I didn't notice that problem.
Your suggestion sounds reasonable. I'll consider changing ai
/ ii
to extend the current selection based on the cursor line.
With the following code:
So we're in visual mode, the cursor is on an indented line inside function
bar
.Now if I do
ai
I'd expect to select the rest (or maybe only the inside?) of the functionbar
, instead it select the whole file..It looks like it considers the start of the visual search as the indentation to use, but I think it should take the current cursor position for this, no?
NOTE: when we're in normal mode, and the cursor is on a print in function
bar
,vai
does select only the inside of the function, so that works.