Don't reset click count on prompt move so we can still double click

This commit is contained in:
Mitchell Hashimoto
2026-02-02 19:53:42 -08:00
parent e06742b36e
commit 6e2d59f8e5

View File

@@ -3974,11 +3974,7 @@ pub fn mouseButtonCallback(
// and we support some kind of click events, then we need to
// move to it.
if (self.maybePromptClick()) |handled| {
if (handled) {
// Moving always resets the click count so that we don't highlight.
self.mouse.left_click_count = 0;
return true;
}
if (handled) return true;
} else |err| {
log.warn("error processing prompt click err={}", .{err});
}