aboutsummaryrefslogtreecommitdiff
path: root/helix-term/src
diff options
context:
space:
mode:
Diffstat (limited to 'helix-term/src')
-rw-r--r--helix-term/src/ui/editor.rs21
1 files changed, 12 insertions, 9 deletions
diff --git a/helix-term/src/ui/editor.rs b/helix-term/src/ui/editor.rs
index 5b5cda93..aa159d40 100644
--- a/helix-term/src/ui/editor.rs
+++ b/helix-term/src/ui/editor.rs
@@ -163,15 +163,18 @@ impl EditorView {
Box::new(highlights)
};
- Self::render_gutter(
- editor,
- doc,
- view,
- view.area,
- theme,
- is_focused,
- &mut line_decorations,
- );
+ let gutter_overflow = view.gutter_offset(doc) == 0;
+ if !gutter_overflow {
+ Self::render_gutter(
+ editor,
+ doc,
+ view,
+ view.area,
+ theme,
+ is_focused,
+ &mut line_decorations,
+ );
+ }
if is_focused {
let cursor = doc