diff options
Diffstat (limited to 'helix-view')
-rw-r--r-- | helix-view/src/editor.rs | 8 | ||||
-rw-r--r-- | helix-view/src/view.rs | 4 |
2 files changed, 4 insertions, 8 deletions
diff --git a/helix-view/src/editor.rs b/helix-view/src/editor.rs index 53c664b1..5d82e0d4 100644 --- a/helix-view/src/editor.rs +++ b/helix-view/src/editor.rs @@ -336,7 +336,7 @@ pub enum GutterType { /// Show line numbers LineNumbers, /// Show one blank space - Padding, + Spacer, } impl std::str::FromStr for GutterType { @@ -473,11 +473,7 @@ impl Default for Config { }, line_number: LineNumber::Absolute, cursorline: false, - gutters: vec![ - GutterType::Diagnostics, - GutterType::LineNumbers, - GutterType::Padding, - ], + gutters: vec![GutterType::Diagnostics, GutterType::LineNumbers], middle_click_paste: true, auto_pairs: AutoPairConfig::default(), auto_completion: true, diff --git a/helix-view/src/view.rs b/helix-view/src/view.rs index 6bdd5be4..3df533df 100644 --- a/helix-view/src/view.rs +++ b/helix-view/src/view.rs @@ -106,14 +106,14 @@ impl View { let width = match gutter_type { GutterType::Diagnostics => 1, GutterType::LineNumbers => 5, - GutterType::Padding => 1, + GutterType::Spacer => 1, }; gutter_offset += width; gutters.push(( match gutter_type { GutterType::Diagnostics => gutter::diagnostics_or_breakpoints, GutterType::LineNumbers => gutter::line_numbers, - GutterType::Padding => gutter::padding, + GutterType::Spacer => gutter::padding, }, width as usize, )); |