mirror of
https://github.com/atuinsh/atuin.git
synced 2024-11-25 01:34:13 +01:00
fix(gui): add \r for windows (shouldn't effect unix bc they should ignore it) (#2253)
This commit is contained in:
parent
33925e3302
commit
256a81a17a
@ -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 });
|
||||
}
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user