Skip to content

Commit

Permalink
fix cursor movement bug
Browse files Browse the repository at this point in the history
  • Loading branch information
nakamuray committed Feb 11, 2011
1 parent 5714883 commit d301b0b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions filter-select
Expand Up @@ -144,8 +144,8 @@ function filter-select() {

elif (( cursor_line > bottom_lines )); then
(( display_head_line += cursor_line - bottom_lines ))
if (( display_head_line > cand_num - lines + 1 )); then
(( display_head_line = cand_num - lines + 1 ))
if (( display_head_line > cand_num - bottom_lines + 1 )); then
(( display_head_line = cand_num - bottom_lines + 1 ))
fi
(( cursor_line = bottom_lines ))
fi
Expand Down

0 comments on commit d301b0b

Please sign in to comment.