treeview: also handle focus change from mouse and then commandview

This commit is contained in:
jgmdev 2022-03-20 00:53:13 -04:00
parent ad25216de7
commit f0cc973e38
1 changed files with 3 additions and 1 deletions

View File

@ -581,7 +581,9 @@ command.add(nil, {
end
else
core.set_active_view(previous_view)
local last_active = not core.last_active_view:is(CommandView)
and core.last_active_view or core.root_view:get_primary_node().views[1]
core.set_active_view(previous_view or last_active)
end
end
})