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-view/src/commands.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'helix-view/src/commands.rs') diff --git a/helix-view/src/commands.rs b/helix-view/src/commands.rs index d131fbb3..ec22950e 100644 --- a/helix-view/src/commands.rs +++ b/helix-view/src/commands.rs @@ -1,5 +1,6 @@ use helix_core::{ graphemes, + indent::TAB_WIDTH, regex::Regex, register, selection, state::{Direction, Granularity, Mode, State}, @@ -541,8 +542,6 @@ pub fn paste(view: &mut View, _count: usize) { } } -const TAB_WIDTH: usize = 4; - fn get_lines(view: &View) -> Vec { let mut lines = Vec::new(); -- cgit v1.2.3-70-g09d2