aboutsummaryrefslogtreecommitdiff
path: root/core/gui.lua
diff options
context:
space:
mode:
Diffstat (limited to 'core/gui.lua')
-rw-r--r--core/gui.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/core/gui.lua b/core/gui.lua
index d2132bc2..0d07f33e 100644
--- a/core/gui.lua
+++ b/core/gui.lua
@@ -234,7 +234,9 @@ events_connect(events.VIEW_NEW, function()
for _, key in ipairs(ctrl_shift_keys) do
buffer:clear_cmd_key(string.byte(key), c.SCMOD_CTRL + c.SCMOD_SHIFT)
end
- load_theme_and_settings()
+ -- Since BUFFER_NEW loads themes and settings on startup, only load them for
+ -- subsequent views.
+ if #_VIEWS > 1 then load_theme_and_settings() end
end)
events_connect(events.VIEW_NEW, function() events.emit(events.UPDATE_UI) end)