From: Michael D. Lowis Date: Wed, 28 Jun 2017 00:06:25 +0000 (-0400) Subject: setup tide to use the highlight engine in your path X-Git-Url: https://git.mdlowis.com/?a=commitdiff_plain;h=abc41b93d82a7679b0b2dcf429e2403f97828d19;p=projs%2Ftide.git setup tide to use the highlight engine in your path --- 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) {