Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 205313
b: refs/heads/master
c: 63f20e7
h: refs/heads/master
i:
  205311: 091e55a
v: v3
  • Loading branch information
Arnaldo Carvalho de Melo committed Jul 17, 2010
1 parent b1ebfd2 commit 8e5afe9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 31a05a4127c81d5d7f095c609420bf6df892a8b0
refs/heads/master: 63f20e744a595444f7ab1d47a29c5b74830feb47
8 changes: 4 additions & 4 deletions trunk/tools/perf/util/newt.c
Original file line number Diff line number Diff line change
Expand Up @@ -491,11 +491,11 @@ static int ui_browser__run(struct ui_browser *self, struct newtExitStruct *es)
break;
case NEWT_KEY_END:
offset = self->height - 1;
if (offset >= self->nr_entries)
offset = self->nr_entries - 1;

if (offset > self->nr_entries)
offset = self->nr_entries;

self->index = self->first_visible_entry_idx = self->nr_entries - 1 - offset;
self->index = self->nr_entries - 1;
self->first_visible_entry_idx = self->index - offset;
self->seek(self, -offset, SEEK_END);
break;
case NEWT_KEY_RIGHT:
Expand Down

0 comments on commit 8e5afe9

Please sign in to comment.