summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorLeo Tenenbaum <pommicket@gmail.com>2021-02-14 13:48:00 -0500
committerLeo Tenenbaum <pommicket@gmail.com>2021-02-14 13:48:00 -0500
commit5ff81b44c8fd118580d011fb61deb662f8b93c93 (patch)
treebb0118576e3ee25f5cc334f5521fcca444795788 /main.c
parent6a4872368e3b240ea15eda3e2e645f588efcf6a9 (diff)
toggle view only mode
Diffstat (limited to 'main.c')
-rw-r--r--main.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/main.c b/main.c
index 9df3426..81a9d90 100644
--- a/main.c
+++ b/main.c
@@ -1,7 +1,4 @@
// @TODO:
-// - fix replace all (with regex)
-// - menu for opening file in view-only mode
-
// - :build (F4) -- cargo build if editing .rs file or file called Cargo.toml, otherwise make.
// - go to definition (with ctags) -- ctrl+click would be nice
@@ -575,6 +572,7 @@ 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;
+ if (ted->find) y2 -= find_menu_height(ted);
node_frame(ted, node, rect4(x1, y1, x2, y2));
if (ted->find) {
find_menu_frame(ted);