feat(tui): rewrite UI with line numbers, soft wrap, and scrolling

This commit is contained in:
dailz
2026-04-10 23:38:06 +08:00
parent 555ffc0836
commit 6820246997
2 changed files with 125 additions and 12 deletions

View File

@@ -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),