aboutsummaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorjgmdev <jgmdev@gmail.com>2022-03-11 05:15:23 -0400
committerjgmdev <jgmdev@gmail.com>2022-05-22 13:16:10 -0400
commit0e00602297e885d165f2f75a630b7644ccaa7a12 (patch)
tree3d2407efbedd42137bce09ca986e147a701412c8 /plugins
parent6fe43d265825d51ba0353a4eca04067d9e2b7870 (diff)
downloadlite-xl-plugins-0e00602297e885d165f2f75a630b7644ccaa7a12.tar.gz
lite-xl-plugins-0e00602297e885d165f2f75a630b7644ccaa7a12.zip
restoretabs: set command predicate to nil
Diffstat (limited to 'plugins')
-rw-r--r--plugins/restoretabs.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/restoretabs.lua b/plugins/restoretabs.lua
index 2ce9408..5c06e80 100644
--- a/plugins/restoretabs.lua
+++ b/plugins/restoretabs.lua
@@ -17,7 +17,7 @@ RootView.update = function(self)
if not initialized_tab_system then
local Node = getmetatable(self.root_node)
local old_close = Node.close_view
-
+
Node.close_view = function(self, root, view)
if view.doc and view.doc.abs_filename then
local closing_filename = view.doc.abs_filename
@@ -40,7 +40,7 @@ RootView.update = function(self)
end
-command.add("core.docview", {
+command.add(nil, {
["restore-tabs:restore-tab"] = function()
if #tab_history > 0 then
local file = tab_history[#tab_history]