readhistory: fix file move/rename (#8575)

Reload updated history after file move/rename.
reviewable/pr8576/r1 v2021.12.1
hius07 2 years ago committed by GitHub
parent d0dd1ee888
commit a024a42289
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

Loading…
Cancel
Save