Fix the call to tag.history.restore from tag.delete

By default, tag.history.restore switches between the previous history
states, which is not what should get done when deleting a tag.

Without this, deleting multiple tags in a row, will jump back to the
first/fallback tag, instead of the older history entries.
This commit is contained in:
Daniel Hahler 2014-03-24 01:17:54 +01:00
parent e13d848914
commit c11153c630
1 changed files with 1 additions and 1 deletions

View File

@ -158,7 +158,7 @@ function tag.delete(target_tag, fallback_tag)
-- If no tags are visible, try and view one.
if tag.selected(target_scr) == nil and ntags > 0 then
tag.history.restore()
tag.history.restore(nil, 1)
if tag.selected(target_scr) == nil then
tag.gettags(target_scr)[1].selected = true
end