mirror of
https://github.com/Eugeny/tabby.git
synced 2025-07-04 10:29:55 +00:00
fixed #7028 - only trim starting whitespace in pasted text if it's a single line
This commit is contained in:
parent
d3982f5f73
commit
270f273ff1
@ -488,7 +488,10 @@ export class BaseTerminalTabComponent extends BaseTabComponent implements OnInit
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (this.config.store.terminal.trimWhitespaceOnPaste) {
|
if (this.config.store.terminal.trimWhitespaceOnPaste) {
|
||||||
data = data.trim()
|
data = data.trimEnd()
|
||||||
|
if (!data.includes('\r')) {
|
||||||
|
data = data.trimStart()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user