diff options
author | Dr. David A. Kunz | 2022-04-16 01:41:25 +0000 |
---|---|---|
committer | GitHub | 2022-04-16 01:41:25 +0000 |
commit | b04c425c63d03f8320eb47ab6e38e4bb79763248 (patch) | |
tree | 3882fa2c6c81677e94dea0189a7665fdd77a1616 /helix-term/src/ui | |
parent | 450f348925ff1a2a39b73481f61af6fc7e57ebef (diff) |
Make gutters configurable (#1967)
* config option line numbers none
* view tests
* added tests
* doc
* comment
* Make gutters configurable
* docu
* docu
* rm none docu
* order
* order
* precedence
* simpler
* rm todo
* fixed clippy
* order
* double quotes
* only allow diagnostics and line-numbers
* tests
* docu
* format
* rm short variant and more docu
* performance improvements
* typo
* rename
Diffstat (limited to 'helix-term/src/ui')
-rw-r--r-- | helix-term/src/ui/editor.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/helix-term/src/ui/editor.rs b/helix-term/src/ui/editor.rs index 564605de..459a8c87 100644 --- a/helix-term/src/ui/editor.rs +++ b/helix-term/src/ui/editor.rs @@ -466,7 +466,7 @@ impl EditorView { // avoid lots of small allocations by reusing a text buffer for each line let mut text = String::with_capacity(8); - for (constructor, width) in view.gutters() { + for (constructor, width) in &view.gutters { let gutter = constructor(editor, doc, view, theme, is_focused, *width); text.reserve(*width); // ensure there's enough space for the gutter for (i, line) in (view.offset.row..(last_line + 1)).enumerate() { |