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

directly implement Widget for &TextArea (fix #78)

Этот коммит содержится в:
rhysd
2024-08-02 15:53:48 +09:00
родитель dea5b03335
Коммит c99108bf45
20 изменённых файлов: 134 добавлений и 116 удалений

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

@@ -34,7 +34,7 @@ fn main() -> io::Result<()> {
.direction(Direction::Vertical)
.constraints([Constraint::Length(height), Constraint::Min(0)])
.split(f.size());
f.render_widget(textarea.widget(), chunks[0]);
f.render_widget(&textarea, chunks[0]);
})?;
match crossterm::event::read()?.into() {
Input { key: Key::Esc, .. } => break,