mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-04-18 21:40:29 +00:00
make selection a const
This commit is contained in:
@@ -515,8 +515,9 @@ const Preview = struct {
|
||||
}
|
||||
if (theme_list.hasMouse(mouse)) |_| {
|
||||
if (mouse.button == .left and mouse.type == .release) {
|
||||
if (self.window + mouse.row < self.filtered.items.len) {
|
||||
self.current = self.window + mouse.row;
|
||||
const selection = self.window + mouse.row;
|
||||
if (selection < self.filtered.items.len) {
|
||||
self.current = selection;
|
||||
}
|
||||
}
|
||||
highlight = mouse.row;
|
||||
|
||||
Reference in New Issue
Block a user