fixed wrapping at newline bug
This commit is contained in:
parent
dee1b91ed7
commit
b710f1838f
|
@ -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);
|
id.id[1] = VUI_Interactive + ((u64)view->interaction << 32);
|
||||||
|
|
||||||
GUI_id scroll_context = {0};
|
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){
|
switch (view->interaction){
|
||||||
case IInt_Sys_File_List:
|
case IInt_Sys_File_List:
|
||||||
|
|
|
@ -1356,7 +1356,7 @@ buffer_get_render_data(Buffer_Type *buffer, Buffer_Render_Item *items, int max,
|
||||||
ch = data[i];
|
ch = data[i];
|
||||||
ch_width = measure_character(advance_data, ch);
|
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;
|
x = shift_x;
|
||||||
y += font_height;
|
y += font_height;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue