Skip to content

Commit

Permalink
fixed #7028 - only trim starting whitespace in pasted text if it's a …
Browse files Browse the repository at this point in the history
…single line
  • Loading branch information
Eugeny committed Oct 25, 2022
1 parent d3982f5 commit 270f273
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tabby-terminal/src/api/baseTerminalTab.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,10 @@ export class BaseTerminalTabComponent extends BaseTabComponent implements OnInit
}
} else {
if (this.config.store.terminal.trimWhitespaceOnPaste) {
data = data.trim()
data = data.trimEnd()
if (!data.includes('\r')) {
data = data.trimStart()
}
}
}
}
Expand Down

0 comments on commit 270f273

Please sign in to comment.