From 37e484ee38eb5a9b4da280960fb1e29939ee9d39 Mon Sep 17 00:00:00 2001 From: Jason Rodney Hansen Date: Thu, 25 Nov 2021 19:58:23 -0700 Subject: Add support for time and more date formats --- helix-term/src/commands.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'helix-term/src') diff --git a/helix-term/src/commands.rs b/helix-term/src/commands.rs index 6329dec7..4869a135 100644 --- a/helix-term/src/commands.rs +++ b/helix-term/src/commands.rs @@ -1,7 +1,7 @@ use helix_core::{ comment, coords_at_pos, find_first_non_whitespace_char, find_root, graphemes, history::UndoKind, - increment::date::DateIncrementor, + increment::date_time::DateTimeIncrementor, increment::{number::NumberIncrementor, Increment}, indent, indent::IndentStyle, @@ -5804,7 +5804,7 @@ fn increment_impl(cx: &mut Context, amount: i64) { let changes = selection.ranges().iter().filter_map(|range| { let incrementor: Option> = if let Some(incrementor) = - DateIncrementor::from_range(text.slice(..), *range) + DateTimeIncrementor::from_range(text.slice(..), *range) { Some(Box::new(incrementor)) } else if let Some(incrementor) = NumberIncrementor::from_range(text.slice(..), *range) { -- cgit v1.2.3-70-g09d2