fix hyperlink underlines
There were two problems: * We weren't correctly invalidating when the hover state changed (a recent regression caused by recent caching changes) * We'd underline every link with the same destination on hover, not just the one under the mouse (longstanding wart) Recent changes allow the application layer to reference the underlying Lines directly, so we can restore the original and expected only-highlight-under-the-mouse by switching to those newer APIs. Adjust the cache values so that we know to also verify the current highlight and invalidate. I was a little surprised to see that this also works with mux client panes: I was expecting to need to do some follow up on those because they return copies of Line rather than references to them. That happens to work because the mux client updates the hyperlinks at the time where it inserts into its cache. The effect of that is that lines in mux client panes won't update to new hyperlink rules if they were received prior to a change in the config. refs: https://github.com/wez/wezterm/issues/2496
This commit is contained in:
1 parent
77ed919098
commit
026b9e3577
5 files changed
+108
-93
No files matched your search
@@ -22,6 +22,8 @@ As features stabilize some brief notes about them will accumulate here.
|
||||
* Correctly invalidate the display when using
|
||||
`wezterm.action.ClearScrollback("ScrollbackAndViewport")`
|
||||
[#2498](https://github.com/wez/wezterm/issues/2498)
|
||||
* Hyperlinks didn't underline on hover
|
||||
[#2496](https://github.com/wez/wezterm/issues/2496)
|
||||
|
||||
### 20220905-102802-7d4b8249
|
||||
|
||||
|
||||
Reference in new issue
Block a user