Fix the cursor issue!
This commit is contained in:
parent
a94368c965
commit
92155aa762
@ -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
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user