From fd336ae37d1affb769452d5c4487128e7c69ffa9 Mon Sep 17 00:00:00 2001 From: Allen Webster Date: Fri, 4 Oct 2019 23:30:10 -0700 Subject: [PATCH] I /think/ I fixed the problem with the cursor in the compilation window. --- 4ed_cli.cpp | 1 + custom/4coder_helper.cpp | 11 +---------- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/4ed_cli.cpp b/4ed_cli.cpp index 04b2276d..72cc8b5e 100644 --- a/4ed_cli.cpp +++ b/4ed_cli.cpp @@ -133,6 +133,7 @@ child_process_set_target_buffer(Models *models, Child_Process *child_process, Ed } } child_process->out_file = file; + child_process->cursor_at_end = HasFlag(flags, ChildProcessSet_CursorAtEnd); file->state.attached_child_process = child_process->id; result = true; } diff --git a/custom/4coder_helper.cpp b/custom/4coder_helper.cpp index 0be7f4a3..6c7dd9ea 100644 --- a/custom/4coder_helper.cpp +++ b/custom/4coder_helper.cpp @@ -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){ Managed_Scope scope = view_get_managed_scope(app, view); 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 (view != 0){ view_set_buffer(app, view, buffer_attach_id, 0); + view_set_cursor(app, view, seek_pos(0)); } } }