[[u8; 3]; 12]) and make sure that the assignment goes over multiple lines.];) is not on the same line as the variable declaration line (one with let x =...).Diagram of result (copied straight from my code):
let mut colors: [[u8; 3]; 12] = [
[255; 3],
[0; 3],
[0; 3],
[255; 3],
[255; 3],
[0; 3],
[100; 3],
[255; 3],
[0; 3],
[255, 0, 0],
[0, 255, 0],
[0, 0, 255],
];
| <--- Cursor ends up 4 spaces too far.
I expected the cursor to end up with consistent indentation like how helix and kakoune do.
Like this:
let mut colors: [[u8; 3]; 12] = [
[255; 3],
[0; 3],
[0; 3],
[255; 3],
[255; 3],
[0; 3],
[100; 3],
[255; 3],
[0; 3],
[255, 0, 0],
[0, 255, 0],
[0, 0, 255],
];
| <--- Expect the cursor to end up at the correct indentation depth.
9.1.1244
Operating System: Debian GNU/Linux 13 x86_64
Vim included patches: 1-948, 950-1230, 1242, 1244
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
Forgot to include this in the issue opening, but here is a video of the bug (its not exactly the same code as in the examples because i expanded it since recording it)
https://github.com/user-attachments/assets/d967e100-20aa-4e4b-b3ec-b056507e5597
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
cannot reproduce using vim --clean
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
weird, I tried using it with vim --clean and its still happening. Mind trying it on the global.rs file (line 60) at https://codeberg.org/Pebble8969/common-text-editor/ ?
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()