Skip to content

Commit

Permalink
Update sb_search.pl
Browse files Browse the repository at this point in the history
another fix by vague
  • Loading branch information
ailin-nemui committed Nov 20, 2017
1 parent 12e0587 commit ad85859
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/sb_search.pl
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ sub cmd_sb_search {
} else { # last line
$line = $view->{buffer}{cur_line};
}
} else { # line after or before first visible line
} elsif ($view->{startline}) { # line after or before first visible line
$line = $forward ? $view->{startline}->next : $view->{startline}->prev;
}

Expand Down

0 comments on commit ad85859

Please sign in to comment.