keyboard.c change math for editline above picker
Change-Id: I59e7f7face07f3f97fc6e016ee333cd3139ad5fd
This commit is contained in:
parent
9e93796407
commit
f0d3a62d91
1 changed files with 17 additions and 1 deletions
|
@ -1398,6 +1398,7 @@ static void kbd_move_picker_vertical(struct keyboard_parameters *pm,
|
|||
|
||||
if (!global_settings.list_wraparound)
|
||||
{
|
||||
#if 0 /* edit line below picker */
|
||||
if (pm->y >= pm->lines)
|
||||
{
|
||||
pm->y = pm->lines;
|
||||
|
@ -1407,7 +1408,22 @@ static void kbd_move_picker_vertical(struct keyboard_parameters *pm,
|
|||
pm->y = 0;
|
||||
else if (pm->line_edit)
|
||||
pm->line_edit = false;
|
||||
|
||||
#else /* edit line above picker */
|
||||
if (pm->y >= pm->lines)
|
||||
{
|
||||
pm->y = pm->lines;
|
||||
}
|
||||
else if (pm->y < 0)
|
||||
{
|
||||
pm->line_edit = true;
|
||||
pm->y = 0;
|
||||
}
|
||||
else if (pm->line_edit)
|
||||
{
|
||||
pm->line_edit = false;
|
||||
pm->y = 0;
|
||||
}
|
||||
#endif
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue