summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorLeo Tenenbaum <pommicket@gmail.com>2021-02-07 22:57:34 -0500
committerLeo Tenenbaum <pommicket@gmail.com>2021-02-07 22:57:34 -0500
commitaca791a675c608c7a19a6bd9098255e95faec94d (patch)
tree869493f4361dcedaf70751c34571597298a056bf /main.c
parentb0506f2a667d0c1f4bddf7429068a4ee2042c039 (diff)
highlight search results
Diffstat (limited to 'main.c')
-rw-r--r--main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/main.c b/main.c
index 0090071..e8d41b4 100644
--- a/main.c
+++ b/main.c
@@ -569,12 +569,12 @@ int main(int argc, char **argv) {
if (ted->active_node) {
float x1 = 25, y1 = 25, x2 = window_width-25, y2 = window_height-25;
+ Node *node = ted->root;
+ node_frame(ted, node, rect4(x1, y1, x2, y2));
if (ted->find) {
find_menu_frame(ted);
if (ted->find) y2 -= find_menu_height(ted);
}
- Node *node = ted->root;
- node_frame(ted, node, rect4(x1, y1, x2, y2));
} else {
text_utf8_anchored(font, "Press Ctrl+O to open a file or Ctrl+N to create a new one.",
window_width * 0.5f, window_height * 0.5f, colors[COLOR_TEXT_SECONDARY], ANCHOR_MIDDLE);