diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2016-05-21 12:29:59 +0200 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2016-05-22 00:05:30 +0200 |
| commit | 29f8d2488cfe86678e65e73c58e36d7c48a0e11b (patch) | |
| tree | bc58ec4a206c1a5d393a67837acb5ea1cce02193 /vis.c | |
| parent | b36ddb65334b4de406304786abfbde85b1e9a4e4 (diff) | |
| download | vis-29f8d2488cfe86678e65e73c58e36d7c48a0e11b.tar.gz vis-29f8d2488cfe86678e65e73c58e36d7c48a0e11b.tar.xz | |
vis: consider :set horizon setting when syntax highlighting
Diffstat (limited to 'vis.c')
| -rw-r--r-- | vis.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -157,7 +157,7 @@ static void window_highlight(void *ctx) { Win *win = ctx; Vis *vis = win->vis; if (!win->file->internal && vis->event && vis->event->win_highlight) - vis->event->win_highlight(vis, win); + vis->event->win_highlight(vis, win, win->horizon); } Win *window_new_file(Vis *vis, File *file) { @@ -168,6 +168,7 @@ Win *window_new_file(Vis *vis, File *file) { win->file = file; win->jumplist = ringbuf_alloc(31); win->event.data = win; + win->horizon = 1 << 15; win->view = view_new(file->text, &win->event); win->ui = vis->ui->window_new(vis->ui, win->view, file, UI_OPTION_STATUSBAR); if (!win->jumplist || !win->view || !win->ui) { |
