Skip to content

Commit

Permalink
fixed bug with removed line on enter
Browse files Browse the repository at this point in the history
  • Loading branch information
Philipp Zins committed Jun 12, 2018
1 parent 34036c0 commit 6df76a4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,8 @@ fn main() {
if state.value.is_empty() {
break;
} else {
write!(stdout, "{}\n", Goto(1, state.start_row as u16 + 2)).unwrap();
write!(stdout, "{}", Goto(1, state.start_row as u16 + 2)).unwrap();
write!(stdout, "\n").unwrap();
stdout.flush().unwrap();
state.value = String::new();
state.index = 0;
Expand Down

0 comments on commit 6df76a4

Please sign in to comment.