Fixed bug in view version of character fixup

master
Allen Webster 2019-10-08 13:25:22 -07:00
parent f61f9db166
commit 2f68a95fd5
1 changed files with 4 additions and 4 deletions

View File

@ -516,10 +516,10 @@ buffer_get_character_legal_pos_from_pos(Application_Links *app, Buffer_ID buffer
} }
internal i64 internal i64
view_get_character_legal_pos_from_pos(Application_Links *app, Buffer_ID buffer, i64 pos){ view_get_character_legal_pos_from_pos(Application_Links *app, View_ID view, i64 pos){
Buffer_Cursor cursor = buffer_compute_cursor(app, buffer, seek_pos(pos)); Buffer_Cursor cursor = view_compute_cursor(app, view, seek_pos(pos));
i64 character = view_relative_character_from_pos(app, buffer, cursor.line, pos); i64 character = view_relative_character_from_pos(app, view, cursor.line, pos);
return(view_pos_from_relative_character(app, buffer, cursor.line, character)); return(view_pos_from_relative_character(app, view, cursor.line, character));
} }
internal Buffer_Cursor internal Buffer_Cursor