diff options
author | Leo Tenenbaum <pommicket@gmail.com> | 2021-02-07 22:57:34 -0500 |
---|---|---|
committer | Leo Tenenbaum <pommicket@gmail.com> | 2021-02-07 22:57:34 -0500 |
commit | aca791a675c608c7a19a6bd9098255e95faec94d (patch) | |
tree | 869493f4361dcedaf70751c34571597298a056bf /main.c | |
parent | b0506f2a667d0c1f4bddf7429068a4ee2042c039 (diff) |
highlight search results
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); |