1
0
зеркало из https://github.com/glebtv/tui-textarea.git synced 2026-09-03 14:26:17 +03:00

refactor undo/redo implementation

Этот коммит содержится в:
rhysd
2023-11-13 19:29:43 +09:00
родитель cb868a19b6
Коммит bae9d4cee3
6 изменённых файлов: 203 добавлений и 164 удалений

Просмотреть файл

@@ -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);
}
}