quick bug fix, 4.0.10 totally ready
parent
dc299cc650
commit
5d9aa6aeb0
|
@ -792,21 +792,27 @@ DOC_SEE(Buffer_Batch_Edit_Type)
|
||||||
bool32 result = false;
|
bool32 result = false;
|
||||||
|
|
||||||
if (file){
|
if (file){
|
||||||
Temp_Memory temp = begin_temp_memory(part);
|
if (edit_count > 0){
|
||||||
Buffer_Edit *inverse_edits = push_array(part, Buffer_Edit, edit_count);
|
Temp_Memory temp = begin_temp_memory(part);
|
||||||
char *inv_str = (char*)part->base + part->pos;
|
Buffer_Edit *inverse_edits = push_array(part, Buffer_Edit, edit_count);
|
||||||
int inv_str_max = part->max - part->pos;
|
Assert(inverse_edits);
|
||||||
Assert(inverse_edits);
|
|
||||||
|
|
||||||
Edit_Spec spec =
|
char *inv_str = (char*)part->base + part->pos;
|
||||||
file_compute_edit(mem, file,
|
int inv_str_max = part->max - part->pos;
|
||||||
edits, str, str_len,
|
|
||||||
inverse_edits, inv_str, inv_str_max,
|
|
||||||
edit_count, type);
|
|
||||||
|
|
||||||
file_do_batch_edit(cmd->system, models, file, spec, hist_normal, type);
|
Edit_Spec spec =
|
||||||
|
file_compute_edit(mem, file,
|
||||||
|
edits, str, str_len,
|
||||||
|
inverse_edits, inv_str, inv_str_max,
|
||||||
|
edit_count, type);
|
||||||
|
|
||||||
end_temp_memory(temp);
|
file_do_batch_edit(cmd->system, models, file, spec, hist_normal, type);
|
||||||
|
|
||||||
|
end_temp_memory(temp);
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
result = true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return(result);
|
return(result);
|
||||||
|
@ -1896,18 +1902,11 @@ DOC(This call changes 4coder's default font to one of the built in fonts.)
|
||||||
i16 font_id = 0;
|
i16 font_id = 0;
|
||||||
|
|
||||||
if (font_set_extract(set, font_name, &font_id)){
|
if (font_set_extract(set, font_name, &font_id)){
|
||||||
global_font->font_id = font_id;
|
|
||||||
|
|
||||||
if (apply_to_all_files){
|
if (apply_to_all_files){
|
||||||
System_Functions *system = cmd->system;
|
global_set_font(cmd->system, cmd->models, font_id);
|
||||||
Models *models = cmd->models;
|
}
|
||||||
|
else{
|
||||||
File_Node *node = 0;
|
global_font->font_id = font_id;
|
||||||
File_Node *sentinel = &models->working_set.used_sentinel;
|
|
||||||
for (dll_items(node, sentinel)){
|
|
||||||
Editing_File *file = (Editing_File*)node;
|
|
||||||
file_set_font(system, models, file, font_id);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -26,8 +26,8 @@ popd
|
||||||
pushd ..\build
|
pushd ..\build
|
||||||
|
|
||||||
REM call "%CODE_DIR%\buildsuper.bat" ..\code\4coder_default_bindings.cpp
|
REM call "%CODE_DIR%\buildsuper.bat" ..\code\4coder_default_bindings.cpp
|
||||||
call "%CODE_DIR%\buildsuper.bat" ..\code\power\4coder_experiments.cpp
|
REM call "%CODE_DIR%\buildsuper.bat" ..\code\power\4coder_experiments.cpp
|
||||||
REM call "%CODE_DIR%\buildsuper.bat" ..\code\power\4coder_casey.cpp
|
call "%CODE_DIR%\buildsuper.bat" ..\code\power\4coder_casey.cpp
|
||||||
REM call "%CODE_DIR%\buildsuper.bat" ..\4vim\4coder_chronal.cpp
|
REM call "%CODE_DIR%\buildsuper.bat" ..\4vim\4coder_chronal.cpp
|
||||||
if %ERRORLEVEL% neq 0 (set FirstError=1)
|
if %ERRORLEVEL% neq 0 (set FirstError=1)
|
||||||
|
|
||||||
|
|
|
@ -1474,7 +1474,7 @@ HOOK_SIG(casey_start)
|
||||||
exec_command(app, change_active_panel);
|
exec_command(app, change_active_panel);
|
||||||
|
|
||||||
app->change_theme(app, literal("Handmade Hero"));
|
app->change_theme(app, literal("Handmade Hero"));
|
||||||
app->change_font(app, literal("Liberation Mono"));
|
app->change_font(app, literal("Liberation Mono"), true);
|
||||||
|
|
||||||
Theme_Color colors[] =
|
Theme_Color colors[] =
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue