diff options
author | Leo Tenenbaum <pommicket@gmail.com> | 2021-01-21 19:13:40 -0500 |
---|---|---|
committer | Leo Tenenbaum <pommicket@gmail.com> | 2021-01-21 19:13:40 -0500 |
commit | 46a02444bdeac16474e31c4e836b118c07f8f57f (patch) | |
tree | 3b8079c0e19704c5c0c45ca838c84a35d4ad608c /command.c | |
parent | 8fca7beaf35cfc438d5d29f352f80dd18efe7d2e (diff) |
trying to make clicking on directories work; not done yet
Diffstat (limited to 'command.c')
-rw-r--r-- | command.c | 9 |
1 files changed, 1 insertions, 8 deletions
@@ -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; } } |