diff options
author | Blaž Hrastnik | 2020-10-14 03:01:41 +0000 |
---|---|---|
committer | Blaž Hrastnik | 2020-10-14 04:35:54 +0000 |
commit | d64f4beede412dbf77df0e00c478b053a3d6cc54 (patch) | |
tree | d665023a2b6ead07a65487bbeb2bcd34e1f44ea3 /helix-term | |
parent | 0b74d423d017b8b201cf9a471f8c1fb1e96de148 (diff) |
Share tab width definitions.
Diffstat (limited to 'helix-term')
-rw-r--r-- | helix-term/src/editor.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/helix-term/src/editor.rs b/helix-term/src/editor.rs index 60d9e079..134dee50 100644 --- a/helix-term/src/editor.rs +++ b/helix-term/src/editor.rs @@ -1,5 +1,5 @@ use clap::ArgMatches as Args; -use helix_core::{state::Mode, syntax::HighlightEvent, Range, State}; +use helix_core::{indent::TAB_WIDTH, state::Mode, syntax::HighlightEvent, Range, State}; use helix_view::{commands, keymap, View}; use std::{ @@ -24,8 +24,6 @@ use crossterm::{ use tui::{backend::CrosstermBackend, buffer::Buffer as Surface, layout::Rect, style::Style}; -const TAB_WIDTH: usize = 4; - type Terminal = tui::Terminal<CrosstermBackend<std::io::Stdout>>; static EX: smol::Executor = smol::Executor::new(); |