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-core/src/indent.rs | 2 +- helix-core/src/lib.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'helix-core') diff --git a/helix-core/src/indent.rs b/helix-core/src/indent.rs index c1a4fd6c..932eaa24 100644 --- a/helix-core/src/indent.rs +++ b/helix-core/src/indent.rs @@ -4,7 +4,7 @@ use crate::{ Rope, RopeSlice, State, }; -const TAB_WIDTH: usize = 4; +pub const TAB_WIDTH: usize = 4; fn indent_level_for_line(line: RopeSlice) -> usize { let mut len = 0; diff --git a/helix-core/src/lib.rs b/helix-core/src/lib.rs index ccdc7297..62d23a10 100644 --- a/helix-core/src/lib.rs +++ b/helix-core/src/lib.rs @@ -1,7 +1,7 @@ #![allow(unused)] pub mod graphemes; mod history; -mod indent; +pub mod indent; pub mod macros; mod position; pub mod register; -- cgit v1.2.3-70-g09d2