We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3b1ba7f commit 906259cCopy full SHA for 906259c
helix-term/src/ui/editor.rs
@@ -421,7 +421,11 @@ impl EditorView {
421
return;
422
}
423
424
- for i in 0..(indent_level / tab_width as u16) {
+ let starting_indent = (offset.col / tab_width) as u16;
425
+ // TODO: limit to a max indent level too. It doesn't cause visual artifacts but it would avoid some
426
+ // extra loops if the code is deeply nested.
427
+
428
+ for i in starting_indent..(indent_level / tab_width as u16) {
429
surface.set_string(
430
viewport.x + (i * tab_width as u16) - offset.col as u16,
431
viewport.y + line,
0 commit comments