diff options
author | Ivan Tham | 2022-07-18 01:13:47 +0000 |
---|---|---|
committer | GitHub | 2022-07-18 01:13:47 +0000 |
commit | e8214fb1e6009d44a4b7094c6e5297a19f18f549 (patch) | |
tree | 1dc2dc1b15f3ed675dd7fed78632b2a0a08bccee /helix-term/src | |
parent | 2a8d38c27bce34c9b6fa95a2fb063fe097e220d4 (diff) |
Make gutters padding optional (#2996)
If all gutters are removed, there are still an extra one padding, would be nice
to remove that to save some space.
Diffstat (limited to 'helix-term/src')
-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 9b8bf8eb..911ee0f0 100644 --- a/helix-term/src/ui/editor.rs +++ b/helix-term/src/ui/editor.rs @@ -615,7 +615,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() { |