an experimental irc client

Merge pull request #8 from Erk-/fix/be-a-bit-less-eager-with-marking-channels

fix: Don't mark current channel as read when clicking on it

authored by rockorager.dev and committed by

GitHub 00ca94bc 528b46bb

+1 -1
+1 -1
src/app.zig
··· 1558 1558 .height = .{ .limit = 1 }, 1559 1559 }); 1560 1560 if (channel_win.hasMouse(self.state.mouse)) |mouse| { 1561 - if (mouse.type == .press and mouse.button == .left) { 1561 + if (mouse.type == .press and mouse.button == .left and self.state.buffers.selected_idx != row) { 1562 1562 // When leaving a channel we mark it as read, so we make sure that's done 1563 1563 // before we change to the new channel. 1564 1564 self.markSelectedChannelRead();