Commit d928791
committed
Fixes a regression, we could trigger a link open while dragging/copying
Implemented the fix.
- Sources/SwiftTerm/Mac/MacTerminalView.swift:2672 now opens a link only when didSelectionDrag is false.
- Tests/SwiftTermTests/MouseTrackingTests.swift:331 now expects a selection drag to open no link. It also confirms that the
drag state resets.1 parent 1b1235d commit d928791
2 files changed
Lines changed: 4 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2669 | 2669 | | |
2670 | 2670 | | |
2671 | 2671 | | |
2672 | | - | |
| 2672 | + | |
| 2673 | + | |
2673 | 2674 | | |
2674 | 2675 | | |
2675 | 2676 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
328 | 328 | | |
329 | 329 | | |
330 | 330 | | |
331 | | - | |
| 331 | + | |
332 | 332 | | |
333 | 333 | | |
334 | 334 | | |
| |||
364 | 364 | | |
365 | 365 | | |
366 | 366 | | |
367 | | - | |
| 367 | + | |
368 | 368 | | |
369 | 369 | | |
370 | 370 | | |
| |||
0 commit comments