aboutsummaryrefslogtreecommitdiff
path: root/vis-lua.c
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2017-03-19 12:06:30 +0100
committerMarc André Tanner <mat@brain-dump.org>2017-03-19 14:58:06 +0100
commit0102293b417d2adc5c4eeff78a9d31f61c9dd6ff (patch)
treeeb0ba8e8f16b6097f363a44314272e1f6a76265b /vis-lua.c
parent42f04699d6df2d5b144533737a8f2f7e0814ad85 (diff)
downloadvis-0102293b417d2adc5c4eeff78a9d31f61c9dd6ff.tar.gz
vis-0102293b417d2adc5c4eeff78a9d31f61c9dd6ff.tar.xz
Move :set theme option implementation to lua
Diffstat (limited to 'vis-lua.c')
-rw-r--r--vis-lua.c19
1 files changed, 0 insertions, 19 deletions
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