aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorYummyOreo <bobgim20@gmail.com>2024-07-10 12:43:18 -0500
committerGitHub <noreply@github.com>2024-07-10 18:43:18 +0100
commit256a81a17aa915c9f97440bf6487b068cfba5acf (patch)
tree5abf3e768cdd34404f8e54c78c6e70ae3b1e0871 /ui
parentchore(deps): Replace cli-clipboard with arboard (#2067) (diff)
downloadatuin-256a81a17aa915c9f97440bf6487b068cfba5acf.zip
fix(gui): add \r for windows (shouldn't effect unix bc they should ignore it) (#2253)
Diffstat (limited to 'ui')
-rw-r--r--ui/src/components/runbooks/editor/blocks/RunBlock/index.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/src/components/runbooks/editor/blocks/RunBlock/index.tsx b/ui/src/components/runbooks/editor/blocks/RunBlock/index.tsx
index a5697234..78928876 100644
--- a/ui/src/components/runbooks/editor/blocks/RunBlock/index.tsx
+++ b/ui/src/components/runbooks/editor/blocks/RunBlock/index.tsx
@@ -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 });
}
};