diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2015-10-12 13:47:36 +0200 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2015-10-14 10:33:26 +0200 |
| commit | 277c6b4897e11a5449fc1cfab3ab6e83307a7989 (patch) | |
| tree | a8b34ab47c11dfd9995ef03d9fae1613dde2be67 /view.c | |
| parent | 9e391f5e3b2baaee0bf73e5273daf84be8a76ce2 (diff) | |
| download | vis-277c6b4897e11a5449fc1cfab3ab6e83307a7989.tar.gz vis-277c6b4897e11a5449fc1cfab3ab6e83307a7989.tar.xz | |
view: cleanup option handling
Diffstat (limited to 'view.c')
| -rw-r--r-- | view.c | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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) |
