Fix the cursor issue!

This commit is contained in:
Timothy Warren 2019-09-19 12:21:23 -04:00
parent a94368c965
commit 92155aa762
2 changed files with 4 additions and 1 deletions

View File

@ -12,4 +12,4 @@ implemented in a more idiomatic Rust fashion.
This generally simplifies dealing with the rules of Rust (borrow checker). This generally simplifies dealing with the rules of Rust (borrow checker).
### Known issues: ### Known issues:
* The cursor is invisible :( * Tab key does not expand to an indent

View File

@ -1066,6 +1066,9 @@ impl Editor {
// If you can't write to stdout, you might as well just panic // If you can't write to stdout, you might as well just panic
handle.write_all(&self.output_buffer.as_bytes()).unwrap(); handle.write_all(&self.output_buffer.as_bytes()).unwrap();
// Explicitly flush output so that the cursor actually appears correctly
io::stdout().flush().unwrap();
} }
/// Set the status bar message /// Set the status bar message