From 77ff51cef9d7444e5dca92c03f6b12edce659dae Mon Sep 17 00:00:00 2001 From: Blaž Hrastnik Date: Wed, 14 Oct 2020 12:03:10 +0900 Subject: Share the padding definition too. --- helix-view/src/commands.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'helix-view/src/commands.rs') diff --git a/helix-view/src/commands.rs b/helix-view/src/commands.rs index ec22950e..7fe9609e 100644 --- a/helix-view/src/commands.rs +++ b/helix-view/src/commands.rs @@ -8,14 +8,12 @@ use helix_core::{ }; use once_cell::sync::Lazy; -use crate::view::View; +use crate::view::{View, PADDING}; /// A command is a function that takes the current state and a count, and does a side-effect on the /// state (usually by creating and applying a transaction). pub type Command = fn(view: &mut View, count: usize); -const PADDING: usize = 5; - pub fn move_char_left(view: &mut View, count: usize) { // TODO: use a transaction let selection = view -- cgit v1.2.3-70-g09d2