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-core/src | |
parent | 0b74d423d017b8b201cf9a471f8c1fb1e96de148 (diff) |
Share tab width definitions.
Diffstat (limited to 'helix-core/src')
-rw-r--r-- | helix-core/src/indent.rs | 2 | ||||
-rw-r--r-- | helix-core/src/lib.rs | 2 |
2 files changed, 2 insertions, 2 deletions
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; |