fixed a few ship bugs for a4.0.12

master
Allen Webster 2016-10-28 10:44:57 -04:00
parent c221d97f13
commit 1068a1de24
2 changed files with 3 additions and 7 deletions

View File

@ -137,12 +137,6 @@ HOOK_SIG(my_start){
exec_command(app, change_active_panel); exec_command(app, change_active_panel);
exec_command(app, hide_scrollbar); exec_command(app, hide_scrollbar);
{
View_Summary view = get_active_view(app, AccessAll);
int32_t width = view.file_region.x1 - view.file_region.x0;
default_wrap_width = width - 40;
}
// Theme options: // Theme options:
// "4coder" // "4coder"
// "Handmade Hero" // "Handmade Hero"

View File

@ -3503,7 +3503,8 @@ process_config_file(Application_Links *app){
int32_t size = ftell(file); int32_t size = ftell(file);
char *mem = (char*)push_block(&global_part, size+1); char *mem = (char*)push_block(&global_part, size+1);
fseek(file, 0, SEEK_SET); fseek(file, 0, SEEK_SET);
fread(mem, 1, size, file); int32_t check_size = fread(mem, 1, size, file);
if (check_size == size){
mem[size] = 0; mem[size] = 0;
fclose(file); fclose(file);
@ -3579,6 +3580,7 @@ process_config_file(Application_Links *app){
print_message(app, literal("Did not find config.4coder, using default settings")); print_message(app, literal("Did not find config.4coder, using default settings"));
} }
} }
}
#endif #endif