Improved selection logic - #578
Conversation
|
Bumped dependencies to the lowest versions without known vulnerabilities and removed two unused dependencies. |
|
Added more robust selection logic: Selects line content if a part a single line is selected or nothing is selected. Also works with nested task lists |
|
|
||
| // Helper functions | ||
|
|
||
| function isSamePosition(a: Position, b: Position): boolean { |
There was a problem hiding this comment.
I would prefer areSamePositions() because there're two params. isSamePosition() would make more sense if it is an instance method, used like a.isSamePosition(b).

Fixed typos, did not change the logic.