Skip to content

Commit

Permalink
fix(gui): add \r for windows (shouldn't effect unix bc they should ig…
Browse files Browse the repository at this point in the history
…nore it) (#2253)
  • Loading branch information
YummyOreo authored Jul 10, 2024
1 parent 33925e3 commit 256a81a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ const RunBlock = ({ onPlay, id, code, isEditable }: RunBlockProps) => {
setPty(pty);
console.log(pty);

let val = !value.endsWith("\n") ? value + "\n" : value;
let val = !value.endsWith("\n") ? value + "\r\n" : value;
await invoke("pty_write", { pid: pty, data: val });
}
};
Expand Down

0 comments on commit 256a81a

Please sign in to comment.