diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2022-01-02 16:55:23 -0800 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2022-01-02 16:55:23 -0800 |
commit | a2081ee612c5e3afbc30361599efc010b5cf6554 (patch) | |
tree | 3506a98d4c4f4dde10562c873069272c5c0d5903 /src/teliva.c | |
parent | f6aaf2fd1dcdbd6da9343bb1be1909832a82ca90 (diff) | |
download | teliva-a2081ee612c5e3afbc30361599efc010b5cf6554.tar.gz |
fork a new editor widget for non-code
Diffstat (limited to 'src/teliva.c')
-rw-r--r-- | src/teliva.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/teliva.c b/src/teliva.c index 99c0da1..7b7fba5 100644 --- a/src/teliva.c +++ b/src/teliva.c @@ -875,6 +875,7 @@ static void load_note_from_editor_buffer(lua_State* L, int cursor) { lua_pop(L, 2); /* table at cursor, teliva_program */ } +extern int editNonCode(char* filename); static void recent_changes_view(lua_State* L) { lua_getglobal(L, "teliva_program"); int history_array = lua_gettop(L); @@ -904,8 +905,7 @@ static void recent_changes_view(lua_State* L) { case CTRL_E: save_note_to_editor_buffer(L, cursor); /* big picture hotkey unnecessarily available here */ - /* TODO: go hotkey is misleading. edits will not be persisted until you return to recent changes */ - edit(L, "teliva_editor_buffer"); + editNonCode("teliva_editor_buffer"); load_note_from_editor_buffer(L, cursor); save_tlv(L, Image_name); break; |