summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorLeo Tenenbaum <pommicket@gmail.com>2021-02-07 19:49:53 -0500
committerLeo Tenenbaum <pommicket@gmail.com>2021-02-07 19:49:53 -0500
commitb0506f2a667d0c1f4bddf7429068a4ee2042c039 (patch)
treed3d77d0b281f49e1707c722f092ff87ab96f9ec8 /main.c
parente802f33329f5c9c2a0630693d42c737d4b75b409 (diff)
simple find menu
Diffstat (limited to 'main.c')
-rw-r--r--main.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/main.c b/main.c
index e6deb96..0090071 100644
--- a/main.c
+++ b/main.c
@@ -46,12 +46,12 @@ no_warn_end
#include "syntax.c"
#include "buffer.c"
#include "ted.c"
+#include "find.c"
#include "ui.c"
#include "node.c"
#include "menu.c"
#include "command.c"
#include "config.c"
-#include "find.c"
#if PROFILE
#define PROFILE_TIME(var) double var = time_get_seconds();
@@ -305,6 +305,8 @@ int main(int argc, char **argv) {
if (buffer_haserr(lbuffer))
die("Error creating line buffer: %s", buffer_geterr(lbuffer));
}
+ line_buffer_create(&ted->find_buffer, ted);
+ line_buffer_create(&ted->replace_buffer, ted);
{
@@ -693,6 +695,8 @@ int main(int argc, char **argv) {
if (ted->nodes_used[i])
node_free(&ted->nodes[i]);
buffer_free(&ted->line_buffer);
+ buffer_free(&ted->find_buffer);
+ buffer_free(&ted->replace_buffer);
text_font_free(ted->font);
text_font_free(ted->font_bold);
settings_free(&ted->settings);