Skip to content

editor: Add Python auto-indent test for same row bracket pair #31473

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

Merged
merged 1 commit into from
May 27, 2025

Conversation

smitbarmase
Copy link
Member

@smitbarmase smitbarmase commented May 27, 2025

We recently added a condition which fixes certain edge cases detecting indent ranges when a bracket pair is on the same row for suggested indent languages. This PR adds a test for that so we don't regress in the future. Ref: #31362

if start.row == end.row && (!significant_indentation || start.column < end.column) {

Release Notes:

  • N/A

@cla-bot cla-bot bot added the cla-signed The user has signed the Contributor License Agreement label May 27, 2025
@zed-industries-bot

This comment was marked as off-topic.

@smitbarmase smitbarmase merged commit 2a8242a into main May 27, 2025
21 of 22 checks passed
@smitbarmase smitbarmase deleted the add-python-indent-test branch May 27, 2025 00:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla-signed The user has signed the Contributor License Agreement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants