We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6681eff commit 7b937dcCopy full SHA for 7b937dc
init.lua
@@ -253,7 +253,7 @@ m.switch = function(space)
253
-- teardown the previous space
254
if previousSpace then
255
if m.hasFunc(previousSpace.funcs, 'teardown') then
256
- m.config.funcs[previousSpace.funcs].teardown()
+ pcall(m.config.funcs[previousSpace.funcs].teardown)
257
end
258
259
if previousSpace.layouts then
@@ -308,7 +308,7 @@ m.switch = function(space)
308
309
-- run setup()
310
if m.hasFunc(space.funcs, 'setup') then
311
- m.config.funcs[space.funcs].setup()
+ pcall(m.config.funcs[space.funcs].setup)
312
313
314
-- use layout
0 commit comments