From a024a42289532041938bd90b5d4f238a0fb35d0b Mon Sep 17 00:00:00 2001 From: hius07 <62179190+hius07@users.noreply.github.com> Date: Wed, 22 Dec 2021 13:51:58 +0200 Subject: [PATCH] readhistory: fix file move/rename (#8575) Reload updated history after file move/rename. --- frontend/readhistory.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/frontend/readhistory.lua b/frontend/readhistory.lua index ceae42286..691f70397 100644 --- a/frontend/readhistory.lua +++ b/frontend/readhistory.lua @@ -258,6 +258,7 @@ function ReadHistory:updateItemByPath(old_path, new_path) self.hist[i].file = new_path self.hist[i].text = new_path:gsub(".*/", "") self:_flush() + self:reload() self.hist[i].callback = function() selectCallback(new_path) end