Skip to content
Browse files

Remove // for 5.8.9 compatibility

  • Loading branch information...
1 parent 49b9bf9 commit 590a95331d793f0ec35897e4a08bbf253eba03c1 Stephen Thirlwall committed Apr 30, 2012
Showing with 3 additions and 2 deletions.
  1. +3 −2 lib/App/USelect/UI/Curses/Mode/Select.pm
View
5 lib/App/USelect/UI/Curses/Mode/Select.pm
@@ -199,8 +199,9 @@ sub _page_up_down {
return if $slr->line($self->_cursor)->can_select;
# Otherwise, try the next selectable, then the previous.
- $self->_set_cursor($slr->next_selectable($self->_cursor, $dir))
- // $self->_set_cursor($slr->next_selectable($self->_cursor, -$dir));
+ if (!$self->_set_cursor($slr->next_selectable($self->_cursor, $dir))) {
+ $self->_set_cursor($slr->next_selectable($self->_cursor, -$dir));
+ }
# If we haven't moved, try scrolling the screen to show the remainder.
$self->_cursor_to_end($dir) if ($self->_cursor == $orig_cursor);

0 comments on commit 590a953

Please sign in to comment.
Something went wrong with that request. Please try again.