Skip to content

Commit a59d75c

Browse files
committed
fix(client): 🐛 flush buffer
1 parent 5a6399f commit a59d75c

File tree

4 files changed

+10
-4
lines changed

4 files changed

+10
-4
lines changed

Cargo.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

client/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "fresh-client"
3-
version = "1.1.0"
3+
version = "1.1.1"
44
authors = ["David Frnoch <frnoch@pm.me>"]
55
edition = "2021"
66
repository = "https://github.com/lnxcz/fresh"

client/src/input.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,12 @@ pub fn process_user_typing(screen: &mut Screen, state: &mut State) -> crossterm:
127127
let mut should_refresh = false;
128128

129129
while event::poll(Duration::default())? {
130+
#[cfg(windows)]
131+
{
132+
use std::io::Write;
133+
std::io::stdout().flush().unwrap();
134+
}
135+
130136
let prev_mode = state.mode;
131137

132138
if let Ok(Event::Key(event)) = event::read() {

server/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "fresh-server"
3-
version = "1.1.0"
3+
version = "1.1.1"
44
authors = ["David Frnoch <frnoch@pm.me>"]
55
edition = "2021"
66
repository = "https://github.com/lnxcz/fresh"

0 commit comments

Comments
 (0)