]> git.mdlowis.com Git - projs/tide.git/commitdiff
Fixed regression for syntax highlighting
authorMichael D. Lowis <mike.lowis@gentex.com>
Thu, 22 Jun 2017 14:57:46 +0000 (10:57 -0400)
committerMichael D. Lowis <mike.lowis@gentex.com>
Thu, 22 Jun 2017 14:57:46 +0000 (10:57 -0400)
TODO.md
lib/view.c

diff --git a/TODO.md b/TODO.md
index 2af79101d8c332021d5ff6d96b9afa4bb1b7bc76..5f291781860ddb3463f258361f8a1533b20e9d19 100644 (file)
--- 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
index b8b7586de6376729fc95b47047de3780c52712a4..e835900422c3149e57e28d481b6c5fb5cf6d44f6 100644 (file)
@@ -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);
 }