[FL-1493] text input: fix "up" key behaviour #591

This commit is contained in:
its your bedtime 2021-07-20 04:56:51 +03:00 committed by GitHub
parent 3a88386aae
commit 0dc4081b85
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -237,7 +237,7 @@ static void text_input_handle_up(TextInput* text_input) {
text_input->view, (TextInputModel * model) { text_input->view, (TextInputModel * model) {
if(model->selected_row > 0) { if(model->selected_row > 0) {
model->selected_row--; model->selected_row--;
if(model->selected_column > get_row_size(model->selected_row) - 5) { if(model->selected_column > get_row_size(model->selected_row) - 6) {
model->selected_column = model->selected_column + 1; model->selected_column = model->selected_column + 1;
} }
} }