From d64f4beede412dbf77df0e00c478b053a3d6cc54 Mon Sep 17 00:00:00 2001 From: Blaž Hrastnik Date: Wed, 14 Oct 2020 12:01:41 +0900 Subject: Share tab width definitions. --- helix-term/src/editor.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'helix-term') 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>; static EX: smol::Executor = smol::Executor::new(); -- cgit v1.2.3-70-g09d2