mirror of
https://github.com/eugeny/tabby
synced 2026-09-22 13:05:55 +00:00
fixed #7028 - only trim starting whitespace in pasted text if it's a single line
This commit is contained in:
@@ -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()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user