cursorless icon indicating copy to clipboard operation
cursorless copied to clipboard

`every branch` partitions the leading branch from the rest

Open MartinRykfors opened this issue 3 years ago • 3 comments

Python code:

if True:
    air()
elif False:
    bat()
elif file_not_found:
    cap()
  • pre every branch air places the cursor only before the if
  • pre every branch bat places the cursor only before the two elifs and not the if

My expectation in both of these cases would be that a cursor is placed before the if and both the elifs.

MartinRykfors avatar May 17 '23 14:05 MartinRykfors

Agreed. This should be easy to fix with new query-based scope types

pokey avatar May 17 '23 16:05 pokey

This should now be solved after the latest python scope updates

AndreasArvidsson avatar Dec 05 '23 15:12 AndreasArvidsson

Confirmed fixed 👍

pokey avatar Dec 05 '23 15:12 pokey