1
0
зеркало из https://github.com/glebtv/tui-textarea.git synced 2026-08-28 11:36:17 +03:00
Этот коммит содержится в:
rhysd
2022-10-04 17:58:18 +09:00
родитель 0ca8573982
Коммит ce5dc54cd4
2 изменённых файлов: 11 добавлений и 0 удалений

10
tests/history.rs Обычный файл
Просмотреть файл

@@ -0,0 +1,10 @@
use tui_textarea::TextArea;
// Regression test for #4
#[test]
fn disable_history() {
let mut t = TextArea::default();
t.set_max_histories(0);
assert!(t.insert_str("hello"));
assert_eq!(t.lines(), ["hello"]);
}

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

@@ -1 +1,2 @@
mod cursor;
mod history;