fixed wrapping at newline bug

This commit is contained in:
Allen Webster 2016-05-23 11:58:27 -04:00
parent dee1b91ed7
commit b710f1838f
2 changed files with 2 additions and 2 deletions

View File

@ -3890,7 +3890,7 @@ step_file_view(System_Functions *system, View *view, View *active_view, Input_Su
id.id[1] = VUI_Interactive + ((u64)view->interaction << 32);
GUI_id scroll_context = {0};
scroll_context.id[1] = VUI_Theme + ((u64)view->color_mode << 32);
scroll_context.id[1] = VUI_Interactive + ((u64)view->interaction << 32);
switch (view->interaction){
case IInt_Sys_File_List:

View File

@ -1356,7 +1356,7 @@ buffer_get_render_data(Buffer_Type *buffer, Buffer_Render_Item *items, int max,
ch = data[i];
ch_width = measure_character(advance_data, ch);
if (ch_width + x > width + shift_x && wrapped){
if (ch_width + x > width + shift_x && wrapped && ch != '\n'){
x = shift_x;
y += font_height;
}