Emit tag::history::update signal from tag.history.restore
Restoring a previous history entry changes the tag history (in the meaning of currently selected tags), and therefore should also emit the tag::history::update signal. A use case might be to automatically hide tags with no clients on them. Signed-off-by: Daniel Hahler <git@thequod.de>
This commit is contained in:
parent
620732a015
commit
c8cbada899
|
@ -234,6 +234,8 @@ function tag.history.restore(screen, idx)
|
||||||
data.history[s].previous = setmetatable(sel, { __mode = 'v' })
|
data.history[s].previous = setmetatable(sel, { __mode = 'v' })
|
||||||
-- remove the reverted history entry
|
-- remove the reverted history entry
|
||||||
if i ~= "previous" then table.remove(data.history[s], i) end
|
if i ~= "previous" then table.remove(data.history[s], i) end
|
||||||
|
|
||||||
|
capi.screen[s]:emit_signal("tag::history::update")
|
||||||
end
|
end
|
||||||
|
|
||||||
--- Get a list of all tags on a screen
|
--- Get a list of all tags on a screen
|
||||||
|
|
Loading…
Reference in New Issue