mirror of
https://github.com/tmate-io/tmate.git
synced 2026-07-24 03:27:37 +00:00
Don't strip add newline if only copying part of wrapped line. Problem spotted
by and fix from Micah Cowan.
This commit is contained in:
parent
44ded35d5d
commit
d285f7fd4d
1 changed files with 1 additions and 1 deletions
|
|
@ -1038,7 +1038,7 @@ window_copy_copy_line(struct window_pane *wp,
|
|||
}
|
||||
|
||||
/* Only add a newline if the line wasn't wrapped. */
|
||||
if (!wrapped) {
|
||||
if (!wrapped || ex != xx) {
|
||||
*buf = xrealloc(*buf, 1, (*off) + 1);
|
||||
(*buf)[(*off)++] = '\n';
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue