aboutsummaryrefslogtreecommitdiff
path: root/view.c
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2015-10-12 13:47:36 +0200
committerMarc André Tanner <mat@brain-dump.org>2015-10-14 10:33:26 +0200
commit277c6b4897e11a5449fc1cfab3ab6e83307a7989 (patch)
treea8b34ab47c11dfd9995ef03d9fae1613dde2be67 /view.c
parent9e391f5e3b2baaee0bf73e5273daf84be8a76ce2 (diff)
downloadvis-277c6b4897e11a5449fc1cfab3ab6e83307a7989.tar.gz
vis-277c6b4897e11a5449fc1cfab3ab6e83307a7989.tar.xz
view: cleanup option handling
Diffstat (limited to 'view.c')
-rw-r--r--view.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/view.c b/view.c
index df8aa93..02393af 100644
--- a/view.c
+++ b/view.c
@@ -873,6 +873,14 @@ int view_symbols_get(View *view) {
return flags;
}
+void view_options_set(View *view, enum UiOption options) {
+ view->ui->options_set(view->ui, options);
+}
+
+enum UiOption view_options_get(View *view) {
+ return view->ui->options_get(view->ui);
+}
+
size_t view_screenline_goto(View *view, int n) {
size_t pos = view->start;
for (Line *line = view->topline; --n > 0 && line != view->lastline; line = line->next)