diff --git a/main.lua b/main.lua index 3a1e0bf..7c7c1a5 100644 --- a/main.lua +++ b/main.lua @@ -88,6 +88,13 @@ function IrcChatView:init(reinit) end self:updateTitle() TextViewer.init(self, reinit) + -- Ensure current buffer content is shown immediately after (re)init + local tgt = self._current_target or "*" + self:preloadHistory(tgt) + if self.scroll_text_w and self.scroll_text_w.text_widget then + self.scroll_text_w.text_widget:setText(self._buffers[tgt] or "") + self.scroll_text_w:scrollToBottom() + end -- Start connection after UI init so we can show logs UIManager:nextTick(function() self:startConnection() end) end