From abc41b93d82a7679b0b2dcf429e2403f97828d19 Mon Sep 17 00:00:00 2001 From: "Michael D. Lowis" Date: Tue, 27 Jun 2017 20:06:25 -0400 Subject: [PATCH] setup tide to use the highlight engine in your path --- lib/colors.c | 2 +- lib/win.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/colors.c b/lib/colors.c index c482e15..d90e19f 100644 --- a/lib/colors.c +++ b/lib/colors.c @@ -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) { diff --git a/lib/win.c b/lib/win.c index 9aed482..2d08f8a 100644 --- 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) { -- 2.49.0