FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Fix extra end line increment in autopep8 plugin by remisalmon · Pull Request #507 · python-lsp/python-lsp-server · GitHub

Fix extra end line increment in autopep8 plugin - #507

Merged
ccordoba12 merged 1 commit into
python-lsp:developfrom
remisalmon:fix-autopep8-range
Dec 27, 2023
Merged

Fix extra end line increment in autopep8 plugin#507
ccordoba12 merged 1 commit into
python-lsp:developfrom
remisalmon:fix-autopep8-range

Conversation

remisalmon commented Dec 27, 2023
edited
Loading

Copy link
Copy Markdown
Contributor

This is fixing a bug where the line range end (inclusive) is incremented twice, first line 32 just above resulting in formatting an extra line of text.

Tested with Spyder, before:

Screen.Recording.2023-12-26.at.9.31.50.PM.mp4

After:

Screen.Recording.2023-12-26.at.9.33.01.PM.mp4

Same logic in the black plugin:

ccordoba12 added the bug Something isn't working label Dec 27, 2023
ccordoba12 added this to the v1.10.0 milestone Dec 27, 2023

ccordoba12 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Looks good to me, thanks @remisalmon!

ccordoba12 merged commit 762853c into python-lsp:develop Dec 27, 2023
This file contains hidden or 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants


Back | FazBrowse Home | New Git URL