You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
deffoo():
pass@decorator# visual select this linedefbar(): # and this lineprint("some code") # and this line, cursor should be left on this lineprint("some other code")
print("here we are doing real things!")
print("some more other code...")
defother_foo():
pass
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 function bar, 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.
The text was updated successfully, but these errors were encountered:
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.The text was updated successfully, but these errors were encountered: