Skip to content

Commit fb9e88e

Browse files
committed
this should fix #87
1 parent 88e7f31 commit fb9e88e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/gui.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -443,7 +443,8 @@ impl MyApp {
443443
// send command
444444
self.history.push(self.command.clone());
445445
self.index = self.history.len() - 1;
446-
if let Err(err) = self.send_tx.send(self.command.clone() + &self.eol) {
446+
let eol = self.eol.replace("\\r", "\r").replace("\\n", "\n");
447+
if let Err(err) = self.send_tx.send(self.command.clone() + &eol) {
447448
print_to_console(
448449
&self.print_lock,
449450
Print::Error(format!("send_tx thread send failed: {:?}", err)),

0 commit comments

Comments
 (0)