feat(tui): rewrite UI with line numbers, soft wrap, and scrolling
This commit is contained in:
@@ -29,7 +29,7 @@ fn main() -> anyhow::Result<()> {
|
||||
}
|
||||
|
||||
while !app.should_quit {
|
||||
terminal.draw(|frame| ui::render(frame, &app))?;
|
||||
terminal.draw(|frame| ui::render(frame, &mut app))?;
|
||||
if crossterm::event::poll(std::time::Duration::from_millis(100))? {
|
||||
match crossterm::event::read()? {
|
||||
crossterm::event::Event::Key(key) => app.handle_key(key),
|
||||
|
||||
Reference in New Issue
Block a user