diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2017-03-19 12:29:13 +0100 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2017-03-19 14:58:07 +0100 |
| commit | f295bba61f97ff0d3d43fcc156b78856f715ffad (patch) | |
| tree | 74c8ab9561d7dd026595525dad58a8ec38b0c5d6 /vis.c | |
| parent | 0102293b417d2adc5c4eeff78a9d31f61c9dd6ff (diff) | |
| download | vis-f295bba61f97ff0d3d43fcc156b78856f715ffad.tar.gz vis-f295bba61f97ff0d3d43fcc156b78856f715ffad.tar.xz | |
Move :set horizon option implementaiton to lua
Diffstat (limited to 'vis.c')
| -rw-r--r-- | vis.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -115,7 +115,7 @@ bool vis_event_emit(Vis *vis, enum VisEvents id, ...) { } else if (vis->event->win_close && id == VIS_EVENT_WIN_CLOSE) { vis->event->win_close(vis, win); } else if (vis->event->win_highlight && id == VIS_EVENT_WIN_HIGHLIGHT) { - vis->event->win_highlight(vis, win, win->horizon); + vis->event->win_highlight(vis, win); } else if (vis->event->win_status && id == VIS_EVENT_WIN_STATUS) { vis->event->win_status(vis, win); } @@ -480,7 +480,6 @@ Win *window_new_file(Vis *vis, File *file, enum UiOption options) { win->vis = vis; win->file = file; win->jumplist = ringbuf_alloc(31); - win->horizon = 1 << 15; win->view = view_new(file->text); win->ui = vis->ui->window_new(vis->ui, win, options); if (!win->jumplist || !win->view || !win->ui) { |
