aboutsummaryrefslogtreecommitdiff
path: root/vis.c
diff options
context:
space:
mode:
Diffstat (limited to 'vis.c')
-rw-r--r--vis.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/vis.c b/vis.c
index f23deba..9e05a6b 100644
--- a/vis.c
+++ b/vis.c
@@ -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) {