fixed file region width wrapping bug

This commit is contained in:
Allen Webster 2016-05-23 07:37:12 -04:00
parent 0ae66f5cdd
commit 199c2a2fc0
3 changed files with 36 additions and 36 deletions

View File

@ -4078,8 +4078,8 @@ App_Step_Sig(app_step){
// NOTE(allen): initialize message
if (first_step){
String welcome = make_lit_string(
"Welcome to " VERSION "\n"
String welcome =
make_lit_string("Welcome to " VERSION "\n"
"If you're new to 4coder there's no tutorial yet :(\n"
"you can use the key combo control + o to look for a file\n"
"and if you load README.txt you'll find all the key combos there are.\n"
@ -4088,7 +4088,7 @@ App_Step_Sig(app_step){
"-Tied the view scrolling and the list arrow navigation together\n"
"-Scroll bars are now toggleable with ALT-s for show and ALT-w for hide\n"
"\n"
"New in alpha 4.0.5:"
"New in alpha 4.0.5:\n"
"-New indent rule\n"
"-app->buffer_compute_cursor in the customization API\n"
"-f keys are available\n"
@ -4574,10 +4574,10 @@ App_Step_Sig(app_step){
gui_post_scroll_vars(&view->gui_target, view->current_scroll);
break;
}
}
view_record_prev_cursor(view);
}
}
// NOTE(allen): send style change messages if the style has changed
if (models->global_font.font_changed){

View File

@ -4217,7 +4217,7 @@ do_input_file_view(System_Functions *system, Exchange *exchange,
gui_session.rect.y0);
f32 new_max_y = view_compute_max_target_y(view);
view->file_region = view->scroll_region;
view->file_region = gui_session.rect;
view->gui_target.scroll_updated.min_y = new_min_y;
view->gui_target.scroll_updated.max_y = new_max_y;