Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix code editor moving lines without selected characters #72672

Closed
wants to merge 1 commit into from

Conversation

aXu-AP
Copy link
Contributor

@aXu-AP aXu-AP commented Feb 3, 2023

Fixes #54362
Supersedes #72270 and #54392

When the selection ends at the start of new line, move_lines_up/down shouldn't affect that line. Makes more sense with empty lines once #72265 gets fixed.
Function and code logic is the same as #72270, but this refactors line selection logic to a separate function.

Add helper functions to get lines that are affected by line operations. These are used in other similiar operations (#72679, #72675, #72671). These likely need to be rebased after one of them gets merged.

When the selection ends at the start of new line, move_lines_up/down shouldn't affect that line.

Add helper functions to get lines that are affected by line operations.
@aXu-AP
Copy link
Contributor Author

aXu-AP commented Feb 3, 2023

Work moved into #72671

@aXu-AP aXu-AP closed this Feb 3, 2023
@YuriSizov YuriSizov removed the request for review from Paulb23 February 3, 2023 21:44
@aXu-AP aXu-AP deleted the code-editor-move-lines-fix branch February 15, 2023 20:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CodeTextEditor.move_lines_up moves an extra line when the selection ends at new line
2 participants