aboutsummaryrefslogtreecommitdiff
path: root/vis-cmds.c
diff options
context:
space:
mode:
Diffstat (limited to 'vis-cmds.c')
-rw-r--r--vis-cmds.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/vis-cmds.c b/vis-cmds.c
index 401d77d..7d3e0ab 100644
--- a/vis-cmds.c
+++ b/vis-cmds.c
@@ -59,6 +59,7 @@ static bool cmd_set(Vis *vis, Win *win, Command *cmd, const char *argv[], Cursor
OPTION_CURSOR_LINE,
OPTION_THEME,
OPTION_COLOR_COLUMN,
+ OPTION_HORIZON,
};
/* definitions have to be in the same order as the enum above */
@@ -73,6 +74,7 @@ static bool cmd_set(Vis *vis, Win *win, Command *cmd, const char *argv[], Cursor
[OPTION_CURSOR_LINE] = { { "cursorline", "cul" }, OPTION_TYPE_BOOL },
[OPTION_THEME] = { { "theme" }, OPTION_TYPE_STRING },
[OPTION_COLOR_COLUMN] = { { "colorcolumn", "cc" }, OPTION_TYPE_NUMBER },
+ [OPTION_HORIZON] = { { "horizon" }, OPTION_TYPE_UNSIGNED },
};
if (!vis->options) {
@@ -242,6 +244,9 @@ static bool cmd_set(Vis *vis, Win *win, Command *cmd, const char *argv[], Cursor
case OPTION_COLOR_COLUMN:
view_colorcolumn_set(win->view, arg.i);
break;
+ case OPTION_HORIZON:
+ view_horizon_set(win->view, arg.u);
+ break;
}
return true;