aboutsummaryrefslogtreecommitdiff
path: root/helix-term/src/ui
diff options
context:
space:
mode:
Diffstat (limited to 'helix-term/src/ui')
-rw-r--r--helix-term/src/ui/editor.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/helix-term/src/ui/editor.rs b/helix-term/src/ui/editor.rs
index 4f485ed2..c34b6cb6 100644
--- a/helix-term/src/ui/editor.rs
+++ b/helix-term/src/ui/editor.rs
@@ -34,6 +34,12 @@ pub struct EditorView {
const OFFSET: u16 = 7; // 1 diagnostic + 5 linenr + 1 gutter
+impl Default for EditorView {
+ fn default() -> Self {
+ Self::new()
+ }
+}
+
impl EditorView {
pub fn new() -> Self {
Self {