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:
parent
e13d848914
commit
c11153c630
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue