diff options
author | Blaž Hrastnik | 2022-09-01 07:14:38 +0000 |
---|---|---|
committer | Blaž Hrastnik | 2022-09-01 07:14:38 +0000 |
commit | 5c2b77b41fadd0e65e02455d36d8509f622bc520 (patch) | |
tree | 57bb35e6cb6e9c0cc55237cb02d3a409203f8abc /helix-view/src/gutter.rs | |
parent | 10d9355b340f65ba534c66772e9d930188ed0a1b (diff) |
Make mode editor-wide rather than per-document
Diffstat (limited to 'helix-view/src/gutter.rs')
-rw-r--r-- | helix-view/src/gutter.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/helix-view/src/gutter.rs b/helix-view/src/gutter.rs index 8f7c3062..ab0e2986 100644 --- a/helix-view/src/gutter.rs +++ b/helix-view/src/gutter.rs @@ -72,7 +72,7 @@ pub fn line_numbers<'doc>( .char_to_line(doc.selection(view.id).primary().cursor(text)); let line_number = editor.config().line_number; - let mode = doc.mode; + let mode = editor.mode; Box::new(move |line: usize, selected: bool, out: &mut String| { if line == last_line && !draw_last { |