From 044fdb36557ce8682c28f31cddcd69d70575bf40 Mon Sep 17 00:00:00 2001 From: rxi Date: Thu, 30 Apr 2020 14:44:52 +0100 Subject: [PATCH] Prevented scroll-animation when LogView is initialized --- data/core/logview.lua | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/data/core/logview.lua b/data/core/logview.lua index 06a8516..f583706 100644 --- a/data/core/logview.lua +++ b/data/core/logview.lua @@ -1,6 +1,4 @@ local core = require "core" -local common = require "core.common" -local config = require "core.config" local style = require "core.style" local View = require "core.view" @@ -10,7 +8,7 @@ local LogView = View:extend() function LogView:new() LogView.super.new(self) - self.last_item = 0 + self.last_item = core.log_items[#core.log_items] self.scrollable = true self.yoffset = 0 end