зеркало из
https://github.com/glebtv/tui-textarea.git
synced 2026-09-03 14:26:17 +03:00
directly implement Widget for &TextArea (fix #78)
Этот коммит содержится в:
@@ -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,
|
||||
|
||||
Ссылка в новой задаче
Block a user