mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-25 13:16:11 +03:00
core: don't crash if link processing fails
This commit is contained in:
@ -1878,7 +1878,11 @@ pub fn mouseButtonCallback(
|
|||||||
// clicked link will swallow the event.
|
// clicked link will swallow the event.
|
||||||
if (button == .left and action == .release) {
|
if (button == .left and action == .release) {
|
||||||
const pos = try self.rt_surface.getCursorPos();
|
const pos = try self.rt_surface.getCursorPos();
|
||||||
if (try self.processLinks(pos)) return;
|
if (self.processLinks(pos)) |processed| {
|
||||||
|
if (processed) return;
|
||||||
|
} else |err| {
|
||||||
|
log.warn("error processing links err={}", .{err});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Report mouse events if enabled
|
// Report mouse events if enabled
|
||||||
|
Reference in New Issue
Block a user