@@ -8,14 +8,12 @@ use helix_core::{
9use once_cell::sync::Lazy;
9use once_cell::sync::Lazy;
11−use crate::view::View;
11+use crate::view::{View, PADDING};
13/// A command is a function that takes the current state and a count, and does a side-effect on the
13/// A command is a function that takes the current state and a count, and does a side-effect on the
14/// state (usually by creating and applying a transaction).
14/// state (usually by creating and applying a transaction).
15pub type Command = fn(view: &mut View, count: usize);
15pub type Command = fn(view: &mut View, count: usize);
17−const PADDING: usize = 5;
19pub fn move_char_left(view: &mut View, count: usize) {
17pub fn move_char_left(view: &mut View, count: usize) {
20 // TODO: use a transaction
18 // TODO: use a transaction
21 let selection = view
19 let selection = view