]> git.mdlowis.com Git - projs/tide.git/commitdiff
setup tide to use the highlight engine in your path
authorMichael D. Lowis <mike@mdlowis.com>
Wed, 28 Jun 2017 00:06:25 +0000 (20:06 -0400)
committerMichael D. Lowis <mike@mdlowis.com>
Wed, 28 Jun 2017 00:06:25 +0000 (20:06 -0400)
lib/colors.c
lib/win.c

index c482e1513f6a5270fcb198e3321c54bfbfa37d61..d90e19f51d0b0215ee052ce01af07f591abf2dbe 100644 (file)
@@ -15,7 +15,7 @@ static int read_byte(void);
 static int read_num(void);
 
 void colors_init(char* path) {
-    cmdspawn((char*[]){ "./tide-hl", path, NULL }, &ChildIn, &ChildOut);
+    cmdspawn((char*[]){ "tide-hl", path, NULL }, &ChildIn, &ChildOut);
 }
 
 SyntaxSpan* colors_scan(SyntaxSpan* spans, Buf* buf, size_t beg, size_t end) {
index 9aed482a804d0431ba55bd5094ad499b008f4cf2..2d08f8a3154156d2ab0a52a6b5971ab27220ce31 100644 (file)
--- a/lib/win.c
+++ b/lib/win.c
@@ -284,10 +284,10 @@ static void onredraw(int width, int height) {
 
     uint64_t stop = getmillis();
     uint64_t elapsed = stop-start;
-    if (elapsed > maxtime) {
+    //if (elapsed > maxtime) {
         //printf("%llu\n", elapsed);
         maxtime = elapsed;
-    }
+    //}
 }
 
 static void oninput(int mods, Rune key) {