Skip to content

Commit

Permalink
fix(client): 🐛 flush buffer
Browse files Browse the repository at this point in the history
  • Loading branch information
dfrnoch committed May 21, 2023
1 parent 5a6399f commit a59d75c
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion client/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "fresh-client"
version = "1.1.0"
version = "1.1.1"
authors = ["David Frnoch <[email protected]>"]
edition = "2021"
repository = "https://github.com/lnxcz/fresh"
Expand Down
6 changes: 6 additions & 0 deletions client/src/input.rs
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,12 @@ pub fn process_user_typing(screen: &mut Screen, state: &mut State) -> crossterm:
let mut should_refresh = false;

while event::poll(Duration::default())? {
#[cfg(windows)]
{
use std::io::Write;
std::io::stdout().flush().unwrap();
}

let prev_mode = state.mode;

if let Ok(Event::Key(event)) = event::read() {
Expand Down
2 changes: 1 addition & 1 deletion server/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "fresh-server"
version = "1.1.0"
version = "1.1.1"
authors = ["David Frnoch <[email protected]>"]
edition = "2021"
repository = "https://github.com/lnxcz/fresh"
Expand Down

0 comments on commit a59d75c

Please sign in to comment.