I /think/ I fixed the problem with the cursor in the compilation window.

master
Allen Webster 2019-10-04 23:30:10 -07:00
parent 78ad172a5f
commit fd336ae37d
2 changed files with 2 additions and 10 deletions

View File

@ -133,6 +133,7 @@ child_process_set_target_buffer(Models *models, Child_Process *child_process, Ed
} }
} }
child_process->out_file = file; child_process->out_file = file;
child_process->cursor_at_end = HasFlag(flags, ChildProcessSet_CursorAtEnd);
file->state.attached_child_process = child_process->id; file->state.attached_child_process = child_process->id;
result = true; result = true;
} }

View File

@ -2333,16 +2333,6 @@ get_margin_color(i32 level){
//////////////////////////////// ////////////////////////////////
internal f32
get_dpi_scaling_value(Application_Links *app){
// TODO(casey): Allen, this should return the multiplier for the display relative to whatever 4coder
// gets tuned to.
f32 result = 2.0f;
return(result);
}
////////////////////////////////
UI_QUIT_FUNCTION(ui_quit_clear_render_hook){ UI_QUIT_FUNCTION(ui_quit_clear_render_hook){
Managed_Scope scope = view_get_managed_scope(app, view); Managed_Scope scope = view_get_managed_scope(app, view);
View_Render_Hook **hook = scope_attachment(app, scope, view_render_hook, View_Render_Hook*); View_Render_Hook **hook = scope_attachment(app, scope, view_render_hook, View_Render_Hook*);
@ -2391,6 +2381,7 @@ exec_system_command(Application_Links *app, View_ID view, Buffer_Identifier buff
if (set_buffer_system_command(app, child_process_id, buffer_attach_id, flags)){ if (set_buffer_system_command(app, child_process_id, buffer_attach_id, flags)){
if (view != 0){ if (view != 0){
view_set_buffer(app, view, buffer_attach_id, 0); view_set_buffer(app, view, buffer_attach_id, 0);
view_set_cursor(app, view, seek_pos(0));
} }
} }
} }