aboutsummaryrefslogtreecommitdiff
path: root/helix-core/src/increment/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'helix-core/src/increment/mod.rs')
-rw-r--r--helix-core/src/increment/mod.rs12
1 files changed, 7 insertions, 5 deletions
diff --git a/helix-core/src/increment/mod.rs b/helix-core/src/increment/mod.rs
index f5945774..f1978bde 100644
--- a/helix-core/src/increment/mod.rs
+++ b/helix-core/src/increment/mod.rs
@@ -1,8 +1,10 @@
-pub mod date_time;
-pub mod number;
+mod date_time;
+mod integer;
-use crate::{Range, Tendril};
+pub fn integer(selected_text: &str, amount: i64) -> Option<String> {
+ integer::increment(selected_text, amount)
+}
-pub trait Increment {
- fn increment(&self, amount: i64) -> (Range, Tendril);
+pub fn date_time(selected_text: &str, amount: i64) -> Option<String> {
+ date_time::increment(selected_text, amount)
}