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

C code alignment is not correct #6630

Closed
severecold opened this issue Mar 6, 2025 · 0 comments
Closed

C code alignment is not correct #6630

severecold opened this issue Mar 6, 2025 · 0 comments

Comments

@severecold
Copy link

severecold commented Mar 6, 2025

Description of the bug

If select the unaligned code in the C code, press TAB or CTRL+] to align and some of the alignment will fail

Steps to reproduce

In the following code, select the inner if statement block, and press TAB or CTRL+], "}" is always not indented.

    if (0) {
if (0) {
    return 0;
}
    }

Expected behavior

correct alignment :

    if (0) {
        if (0) {
            return 0;
        }
    }

Actual behavior

    if (0) {
    if (0) {
        return 0;
}
    }

Sublime Text build number

4195 Dev channel

Operating system & version

Windows 10, 19045

(Linux) Desktop environment and/or window manager

No response

Additional information

No response

OpenGL context information


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