aboutsummaryrefslogtreecommitdiff
path: root/view.h
diff options
context:
space:
mode:
authorDavid B. Lamkins <david@lamkins.net>2016-04-19 22:51:29 +0200
committerMarc André Tanner <mat@brain-dump.org>2016-04-19 23:03:09 +0200
commit754b1cec7a39723b415ee76e797e587a7b5054dc (patch)
tree556d63ccefd7301719aec4f51a9b66b2964c98cc /view.h
parentaab8b6c44151cb086850ba9872251cfc452506b7 (diff)
downloadvis-754b1cec7a39723b415ee76e797e587a7b5054dc.tar.gz
vis-754b1cec7a39723b415ee76e797e587a7b5054dc.tar.xz
vis: add :set horizon option
Can be used to specify the number of bytes before the visible area to consider for syntax highlighting. Defaults to 32K for now, whereas before it was 16K.
Diffstat (limited to 'view.h')
-rw-r--r--view.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/view.h b/view.h
index 14f01d3..8460116 100644
--- a/view.h
+++ b/view.h
@@ -100,6 +100,8 @@ void view_options_set(View*, enum UiOption options);
enum UiOption view_options_get(View*);
void view_colorcolumn_set(View*, int col);
int view_colorcolumn_get(View*);
+void view_horizon_set(View*, size_t bytes);
+size_t view_horizon_get(View*);
/* A view can manage multiple cursors, one of which (the main cursor) is always
* placed within the visible viewport. All functions named view_cursor_* operate