From: Michael D. Lowis Date: Thu, 22 Jun 2017 14:57:46 +0000 (-0400) Subject: Fixed regression for syntax highlighting X-Git-Url: https://git.mdlowis.com/?a=commitdiff_plain;h=20b3320569b257b5f3b14eb2e2b06e4b9c546a7a;p=projs%2Ftide.git Fixed regression for syntax highlighting --- 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); }