From d00c3247691c2f30214bcfeffb1830d725a173b9 Mon Sep 17 00:00:00 2001 From: Leo Tenenbaum Date: Sun, 28 Feb 2021 21:31:49 -0500 Subject: find bugfixes (switch to another buffer after find) --- main.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'main.c') diff --git a/main.c b/main.c index 5dc3d51..d954128 100644 --- a/main.c +++ b/main.c @@ -1,7 +1,4 @@ // @TODO: -// - fix: -// ctrl+f something, then switch to another tab (hl rects still showing up) -// ctrl+f something, then change buffer (e.g. make sure replace doesn't do something bad) // - refresh find results by pressing Enter in find/replace buffer // - Windows installation @@ -645,7 +642,7 @@ int main(int argc, char **argv) { strcpy(ted->window_title, "ted"); - if (ted_anything_open(ted)) { + if (ted->nodes_used[0]) { float const padding = settings->padding; float x1 = padding, y = window_height-padding, x2 = window_width-padding; Node *node = &ted->nodes[0]; -- cgit v1.2.3