warpdotdev / Warp

Warp is a modern, Rust-based terminal with AI built in so you and your team can build great software, faster.
https://warp.dev
Other
21.19k stars 362 forks source link

Multi-line commands add trailing prefix characters #4632

Open beruda opened 6 months ago

beruda commented 6 months ago

Discord username (optional)

No response

Describe the bug

When I run multi-line commands (like a cURL with a lot of flags) and break them up into multiple lines, the command is saved with trailing prefixes. This persists when using the up arrow to re-use the previous command.

https://github.com/warpdotdev/Warp/assets/33172939/b12bf893-25a2-4420-a78a-40507a0441fb

To reproduce

Run echo test with an additional line added with Shift+Enter, or just paste

echo test

or

echo \
test

Expected behavior

No trailing prefixes are added

Screenshots

See screen recording in desc

Operating system

MacOS

Operating system and version

Sonoma 14.2.1

Shell Version

zsh 5.9 (x86_64-apple-darwin23.0)

Current Warp version

v0.2024.03.19.08.01.stable_01

Regression

Yes, this bug started recently or with an X Warp version

Recent working Warp date

~2mo ago

Additional context

No response

Does this block you from using Warp daily?

No

Is this a Warp specific issue? (i.e. does it happen in Terminal, iTerm, Kitty, etc.)

Yes, this I confirmed this only happens in Warp, not other terminals.

Warp Internal (ignore): linear-label:b9d78064-c89e-4973-b153-5178a31ee54e

None

CivelXu commented 6 months ago

Here's a solution. https://github.com/warpdotdev/Warp/issues/3988#issuecomment-1871507929