зеркало из
https://github.com/glebtv/tui-textarea.git
synced 2026-09-03 14:26:17 +03:00
refactor undo/redo implementation
Этот коммит содержится в:
@@ -55,7 +55,11 @@ fn test_input_all_combinations_sanity() {
|
||||
|
||||
for input in inputs {
|
||||
t.input(input.clone());
|
||||
t.undo();
|
||||
t.redo();
|
||||
t.input_without_shortcuts(input);
|
||||
t.undo();
|
||||
t.redo();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -830,7 +830,6 @@ fn test_delete_str_multiple_lines() {
|
||||
|
||||
assert!(t.undo(), "undo: {:?}", test);
|
||||
assert_eq!(t.lines(), before, "content after undo: {:?}", test);
|
||||
assert_eq!(t.cursor(), (row, col), "cursor after undo: {:?}", test);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Ссылка в новой задаче
Block a user