summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorLeo Tenenbaum <pommicket@gmail.com>2021-02-28 21:31:49 -0500
committerLeo Tenenbaum <pommicket@gmail.com>2021-02-28 21:31:49 -0500
commitd00c3247691c2f30214bcfeffb1830d725a173b9 (patch)
tree0975ef99b6baac4c41da79af4bc679c0c939ab53 /main.c
parent410b9b764c4a6c81a3573cf7ca23330d43931829 (diff)
find bugfixes (switch to another buffer after find)
Diffstat (limited to 'main.c')
-rw-r--r--main.c5
1 files changed, 1 insertions, 4 deletions
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];