mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-24 12:46:10 +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.
|
||||
if (button == .left and action == .release) {
|
||||
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
|
||||
|
Reference in New Issue
Block a user