mirror of
https://github.com/davatorium/rofi.git
synced 2024-11-11 13:50:48 -05:00
We don't have a negative page number.
This commit is contained in:
parent
6070826c4d
commit
09437e3f0e
3 changed files with 11 additions and 11 deletions
|
@ -28,7 +28,7 @@ struct RofiViewState
|
|||
int update;
|
||||
int refilter;
|
||||
int rchanged;
|
||||
int cur_page;
|
||||
unsigned int cur_page;
|
||||
|
||||
// Entries
|
||||
textbox *text;
|
||||
|
|
|
@ -862,7 +862,7 @@ static unsigned int rofi_scroll_per_page ( RofiViewState * state )
|
|||
}
|
||||
else{
|
||||
// Do paginating
|
||||
int page = ( state->max_elements > 0 ) ? ( state->selected / state->max_elements ) : 0;
|
||||
unsigned int page = ( state->max_elements > 0 ) ? ( state->selected / state->max_elements ) : 0;
|
||||
offset = page * state->max_elements;
|
||||
state->last_offset = offset;
|
||||
if ( page != state->cur_page ) {
|
||||
|
|
Loading…
Reference in a new issue