Repository navigation
macOS paste behavior inconsistent with Terminal.app triggering multi-line text to paste into single line #9592
Replies: 2 comments
|
I would really like to see this fixed. Any updates? |
|
So I think I might be seeing the same kind of issue. What is working: Ghostty → Vim directly: multiline paste works correctly. What is failing:
Additional Information: I am able to reproduce this with a clean tmux server also: Then inside that tmux session: shows newlines cleanly but paste inside of vim concatenates everything to a single line. Text that I used: How it appears inside of ghostty + tmux + vim: There is one extra clue here: Inside of vim, if I run and then do Cmd+V, it preserves the newlines. This leads me to think that its related to bracketed paste / newline handling rather than the clipboard content I am using the following: Ghostty Tmux vim OSX |
Uh oh!
There was an error while loading. Please reload this page.
Issue Description
When pasting multi-line text on macOS in bracketed paste mode, some applications get confused by the CR LF handling of ghostty vs how Terminal.app handles the same text, resulting in all pasted text rendering as a single line. The old text editor "joe" is an example of this behavior and ends up being the same as if you used Terminal.app and turned off its default advanced setting of "Paste newlines as carriage returns".
I have created a branch that creates a new config option that enables additional handling to match the behavior of Terminal.app, rewriting also while in bracketed paste mode. Looking for feedback on this approach.
fix/bracketed-paste-newline-compat
Expected Behavior
Expect multi-line text to paste as multiple lines.
Actual Behavior
Bracketed multi-line text pastes as a single line.
Reproduction Steps
Ghostty Logs
No response
Ghostty Version
OS Version Information
macOS 15.7.1
(Linux only) Display Server
None
(Linux only) Desktop Environment/Window Manager
No response
Minimal Ghostty Configuration
Additional Relevant Configuration
No response
I acknowledge that:
```) on separate lines.All reactions