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

Indentation of closing brackets/keywords in selected text not working #6629

Open
deathaxe opened this issue Mar 4, 2025 · 4 comments
Open

Comments

@deathaxe
Copy link
Collaborator

deathaxe commented Mar 4, 2025

Description of the bug

See below

Steps to reproduce

  1. Paste following content

    .tr {
        .tr {
            .tr {
                color: red;
            }
        }
    }
    
  2. select erverything (ctrl+a)

    Image

  3. indent via tab key

Expected behavior

Closing brackets at line 6 and 7 are also indented.

Actual behavior

Line 6 and 7 are not indented

Image

Sublime Text build number

4195

Operating system & version

Win11

(Linux) Desktop environment and/or window manager

No response

Additional information

No response

OpenGL context information


@gerardroche
Copy link

This looks like the same regression issue I'm having with NeoVintageous indentation commands.

In ST: Indent ctrl+] and Unindent ctrl+[

One or more lines at the end of the selection are not indented/unindented.

@severecold
Copy link

same issue

@willrowe
Copy link

willrowe commented Mar 6, 2025

I'm seeing this too. If I extend the selection to include the newline after the last bracket it works.

@deathaxe deathaxe marked this as a duplicate of #6630 Mar 7, 2025
@chris-vecchio
Copy link

chris-vecchio commented Mar 7, 2025

Came here to report this as well. I still get incorrect indentation even after selecting the newline. It's the same issue for brackets, curly braces, and parentheses. I've only tested in Python and JavaScript. Build 4195 Windows 10

Image

after pressing Tab:

Image

Function call in Python before selecting all lines and pressing Tab:

Image

after pressing Tab:

Image

I tested on a bunch of different objects in both languages and the behavior is incorrect in different ways both within and across languages.

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

5 participants