@@ -2,7 +2,8 @@ use crossterm::{
22 cursor,
33 cursor::position,
44 event::{self, read, Event, EventStream, KeyCode, KeyEvent},
5− execute, queue, style,
5+ execute, queue,
6+ style::Print,
67 terminal::{self, disable_raw_mode, enable_raw_mode},
78};
89use futures::{future::FutureExt, select, StreamExt};
@@ -39,6 +40,10 @@ impl Editor {
3940
4041 fn render(&self) {
4142 // TODO:
43+ match &self.state {
44+ Some(s) => execute!(stdout(), cursor::MoveTo(0, 0), Print(s.file())).unwrap(),
45+ None => (),
46+ }
4247 }
4348
4449 pub async fn print_events(&mut self) {