zed-industries / zed

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
https://zed.dev
Other
50.72k stars 3.14k forks source link

File contents displayed inline with prompt when using SSH #20598

Open Moshyfawn opened 2 weeks ago

Moshyfawn commented 2 weeks ago

Check for existing issues

Describe the bug / provide steps to reproduce it

During SSH connections to remote machines, file contents are being displayed inline with the prompt rather than having the prompt appear on its own new line as expected.

I have a starship prompt if that makes any difference, but I don't the same issue when using the terminal on my local machine.

Environment

Zed: v0.162.0 (Zed Nightly 55cd99cdc4d22bf82c0a59d8fa76f4ab9b85370c) OS: macOS 14.6.1 Memory: 18 GiB Architecture: aarch64

If applicable, add mockups / screenshots to help explain present your vision of the feature

image

If applicable, attach your Zed.log file to this issue.

Zed.log ``` ```
notpeter commented 2 weeks ago

Does that file have a trailing newline? If not, this is expected behavior of cat.

/tmp () $ echo poop > poop
/tmp () $ echo -n poop > poop2
/tmp () $ xxd -p poop
706f6f700a
/tmp () $ xxd -p poop2
706f6f70
/tmp () $ 

If you file ends with an 0a there's a newline.

notpeter commented 1 week ago

Bump.