From 0102293b417d2adc5c4eeff78a9d31f61c9dd6ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Sun, 19 Mar 2017 12:06:30 +0100 Subject: Move :set theme option implementation to lua --- vis-lua.c | 19 ------------------- 1 file changed, 19 deletions(-) (limited to 'vis-lua.c') diff --git a/vis-lua.c b/vis-lua.c index aef513b..66a2677 100644 --- a/vis-lua.c +++ b/vis-lua.c @@ -160,7 +160,6 @@ void vis_lua_file_close(Vis *vis, File *file) { } void vis_lua_win_open(Vis *vis, Win *win) { } void vis_lua_win_close(Vis *vis, Win *win) { } void vis_lua_win_highlight(Vis *vis, Win *win, size_t horizon) { } -bool vis_theme_load(Vis *vis, const char *name) { return true; } void vis_lua_win_status(Vis *vis, Win *win) { window_status_update(vis, win); } #else @@ -2746,22 +2745,4 @@ void vis_lua_win_status(Vis *vis, Win *win) { lua_pop(L, 1); } -/*** - * Theme change. - * @function theme_change - * @tparam string theme the name of the new theme to load - */ -bool vis_theme_load(Vis *vis, const char *name) { - lua_State *L = vis->lua; - vis_lua_event_get(L, "theme_change"); - if (lua_isfunction(L, -1)) { - lua_pushstring(L, name); - pcall(vis, L, 1, 0); - } - lua_pop(L, 1); - /* package.loaded['themes/'..name] = nil - * require 'themes/'..name */ - return true; -} - #endif -- cgit v1.2.3