-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor selection expansion logic into a separate method (#10117)
Release Notes: - N/A This commit introduces a new method `range` to calculate the target range for selection expansion based on the current selection, movement times, and other parameters. The `expand_selection` method is refactored to use this new `range` method, simplifying the logic for expanding a selection and making the code more modular and reusable. The `range` method encapsulates the logic for calculating the new selection range, including handling linewise selection and adjustments for surrounding newlines, making it easier to understand and maintain the selection expansion functionality. --------- Co-authored-by: Thorsten Ball <[email protected]>
- Loading branch information
Showing
1 changed file
with
32 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters