mirror of
https://github.com/kdheepak/taskwarrior-tui.git
synced 2025-08-26 03:07:18 +02:00
feat: Update dependencies ✨
This commit is contained in:
parent
054b46aa56
commit
6d5d7e92f1
27 changed files with 8039 additions and 8088 deletions
19
src/utils.rs
Normal file
19
src/utils.rs
Normal file
|
@ -0,0 +1,19 @@
|
|||
use rustyline::line_buffer::ChangeListener;
|
||||
use rustyline::line_buffer::DeleteListener;
|
||||
use rustyline::line_buffer::Direction;
|
||||
|
||||
/// Undo manager
|
||||
#[derive(Default)]
|
||||
pub struct Changeset {}
|
||||
|
||||
impl DeleteListener for Changeset {
|
||||
fn delete(&mut self, idx: usize, string: &str, _: Direction) {}
|
||||
}
|
||||
|
||||
impl ChangeListener for Changeset {
|
||||
fn insert_char(&mut self, idx: usize, c: char) {}
|
||||
|
||||
fn insert_str(&mut self, idx: usize, string: &str) {}
|
||||
|
||||
fn replace(&mut self, idx: usize, old: &str, new: &str) {}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue