From 20b3320569b257b5f3b14eb2e2b06e4b9c546a7a Mon Sep 17 00:00:00 2001 From: "Michael D. Lowis" Date: Thu, 22 Jun 2017 10:57:46 -0400 Subject: [PATCH] Fixed regression for syntax highlighting --- TODO.md | 2 +- lib/view.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/TODO.md b/TODO.md index 2af7910..5f29178 100644 --- a/TODO.md +++ b/TODO.md @@ -2,7 +2,7 @@ Up Next: -* highlighting is broken for comments partially off screen (again) +* moving fromtags to the gutter does not trasnfer focus to edit like one would expect * implement transaction control in buf.c * highlight all matches of search term * highlight classes of identifiers diff --git a/lib/view.c b/lib/view.c index b8b7586..e835900 100644 --- a/lib/view.c +++ b/lib/view.c @@ -109,7 +109,7 @@ void view_update(View* view, size_t* csrx, size_t* csry) { size_t start = (view->spans ? view->spans->end : 0); if (first-start > config_get_int(MaxScanDist)) start = first - config_get_int(MaxScanDist); - view->spans = colors_scan(view->syntax, view->spans, &(view->buffer), first, last+1); + view->spans = colors_scan(view->syntax, view->spans, &(view->buffer), start, last+1); apply_colors(view); } -- 2.49.0