summaryrefslogtreecommitdiff
path: root/command.c
diff options
context:
space:
mode:
authorLeo Tenenbaum <pommicket@gmail.com>2021-01-21 19:13:40 -0500
committerLeo Tenenbaum <pommicket@gmail.com>2021-01-21 19:13:40 -0500
commit46a02444bdeac16474e31c4e836b118c07f8f57f (patch)
tree3b8079c0e19704c5c0c45ca838c84a35d4ad608c /command.c
parent8fca7beaf35cfc438d5d29f352f80dd18efe7d2e (diff)
trying to make clicking on directories work; not done yet
Diffstat (limited to 'command.c')
-rw-r--r--command.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/command.c b/command.c
index 206274a..f5ceb0c 100644
--- a/command.c
+++ b/command.c
@@ -156,14 +156,7 @@ void command_execute(Ted *ted, Command c, i64 argument) {
assert(0);
break;
case MENU_OPEN: {
- char *filename_cstr = str32_to_utf8_cstr(buffer_get_line(&ted->line_buffer, 0));
- if (filename_cstr) {
- buffer = ted_open_file(ted, filename_cstr);
- free(filename_cstr);
- menu_close(ted, false);
- } else {
- ted_seterr(ted, "Out of memory.");
- }
+ ted->file_selector.submitted = true;
} break;
}
}