* Clear the selection
()
| 220 | * Clear the selection |
| 221 | */ |
| 222 | clearSelection(): void { |
| 223 | if (!this.hasSelection()) return; |
| 224 | |
| 225 | // Mark current selection rows as dirty for redraw |
| 226 | const coords = this.normalizeSelection(); |
| 227 | if (coords) { |
| 228 | for (let row = coords.startRow; row <= coords.endRow; row++) { |
| 229 | this.dirtySelectionRows.add(row); |
| 230 | } |
| 231 | } |
| 232 | |
| 233 | this.selectionStart = null; |
| 234 | this.selectionEnd = null; |
| 235 | this.isSelecting = false; |
| 236 | |
| 237 | // Force redraw of previously selected lines to clear the overlay |
| 238 | this.requestRender(); |
| 239 | } |
| 240 | |
| 241 | /** |
| 242 | * Select all text in the terminal |
no test coverage detected