readhistory: fix file move/rename (#8575)

Reload updated history after file move/rename.
This commit is contained in:
hius07
2021-12-22 13:51:58 +02:00
committed by GitHub
parent d0dd1ee888
commit a024a42289

View File

@@ -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