mirror of
https://github.com/atuinsh/atuin.git
synced 2025-06-25 04:11:53 +02: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);
|
setPty(pty);
|
||||||
console.log(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 });
|
await invoke("pty_write", { pid: pty, data: val });
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user