an experimental irc client

ui: don't draw new message bar below last message

+3 -1
+3 -1
src/irc.zig
··· 806 806 maybe_instant = last_msg.localTime(&self.client.app.tz); 807 807 } 808 808 809 + var first_iter = true; 809 810 while (iter.next()) |msg| { 811 + defer first_iter = false; 810 812 // Break if we have gone past the top of the screen 811 813 if (row < 0) break; 812 814 ··· 1001 1003 // Check if we should print a "last read" line. If the next message we will print is 1002 1004 // before the last_read, and this message is after the last_read then it is our border. 1003 1005 // Before 1004 - if (maybe_next_instant != null and maybe_instant != null) { 1006 + if (!first_iter and maybe_next_instant != null and maybe_instant != null) { 1005 1007 const this = maybe_instant.?.unixTimestamp(); 1006 1008 const next = maybe_next_instant.?.unixTimestamp(); 1007 1009 if (this > self.last_read and next <= self.last_read) {