From 29f8d2488cfe86678e65e73c58e36d7c48a0e11b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Sat, 21 May 2016 12:29:59 +0200 Subject: vis: consider :set horizon setting when syntax highlighting --- view.c | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'view.c') diff --git a/view.c b/view.c index ec06b9e..e67dc42 100644 --- a/view.c +++ b/view.c @@ -88,8 +88,6 @@ struct View { Cursor *cursors; /* all cursors currently active */ Selection *selections; /* all selected regions */ int cursor_generation; /* used to filter out newly created cursors during iteration */ - size_t horizon; /* maximal number of bytes to consider for syntax highlighting - * before the visible area */ bool need_update; /* whether view has been redrawn */ bool large_file; /* optimize for displaying large files */ int colorcolumn; @@ -568,7 +566,6 @@ View *view_new(Text *text, ViewEvent *events) { view->text = text; view->tabwidth = 8; - view->horizon = 1 << 15; view_options_set(view, 0); if (!view_resize(view, 1, 1)) { @@ -865,14 +862,6 @@ int view_colorcolumn_get(View *view) { return view->colorcolumn; } -void view_horizon_set(View *view, size_t bytes) { - view->horizon = bytes; -} - -size_t view_horizon_get(View *view) { - return view->horizon; -} - 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) -- cgit v1.2.3