shithub: orca

Download patch

ref: 5d733839a064f20d22f18b2d0b2b00c619041963
parent: 84869b49a69e6e18062c12ff8459eef2e9b2da37
author: cancel <cancel@cancel.fm>
date: Tue Dec 18 00:19:22 EST 2018

Add save-as actually saving

--- a/tui_main.c
+++ b/tui_main.c
@@ -1990,8 +1990,9 @@
               if (qform_get_text_line(qf, Save_as_name_id, &temp_name) &&
                   heapstr_len(&temp_name) > 0) {
                 qnav_stack_pop();
-                fprintf(stderr, "new file name: %s\n", temp_name.str);
-                // ged_state.filename = file_name.str;
+                heapstr_set_cstr(&file_name, temp_name.str);
+                ged_state.filename = file_name.str;
+                try_save_with_msg(&ged_state);
               }
               heapstr_deinit(&temp_name);
             } break;