(originalText: string)
| 289 | |
| 290 | // Creates placeholder for single line or multi-line pastes |
| 291 | private createPlaceholder(originalText: string): string { |
| 292 | this._pasteCounter++; |
| 293 | const lineCount = originalText.split(/\r\n|\r|\n/).length; |
| 294 | |
| 295 | if (lineCount === 1) { |
| 296 | return `[Paste #${this._pasteCounter}]`; |
| 297 | } else { |
| 298 | return `[Paste #${this._pasteCounter}, ${lineCount} lines]`; |
| 299 | } |
| 300 | } |
| 301 | |
| 302 | // Handles bracketed paste: \e[200~ (start) and \e[201~ (end) sequences |
| 303 | private handleBracketedPaste(input: string): boolean { |
no outgoing calls
no test coverage detected