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

Unexpected behavior with formatting a comment in Python syntax with gqq #774

Open
leonardt opened this issue Jun 9, 2021 · 1 comment
Open

Comments

@leonardt
Copy link
Contributor

leonardt commented Jun 9, 2021

Describe the bug
When using gqq to format a Python comment, the line before it is included.

To Reproduce
Example code:

def foo():
    # This is a comment
    # This is a really long comment line that should be line wrapped using gqq but it shouldn't affect the line above it

Expected behavior
Using gqq on the third line (long comment) should produce (using vim 8.2)

def foo():
    # This is a comment
    # This is a really long comment line that should be line wrapped using gqq
    # but it shouldn't affect the line above it

Actual behavior
Instead I get this:

def foo():
    # This is a comment This is a really long comment line that should be line
    # wrapped using gqq but it shouldn't affect the line above it

Versions
startup, version: 4107 linux x64 channel: stable

@gerardroche
Copy link
Contributor

This is due to a regression in ST4 sublimehq/sublime_text#3177

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants