Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 288704
b: refs/heads/master
c: 58e817d
h: refs/heads/master
v: v3
  • Loading branch information
Namhyung Kim authored and Arnaldo Carvalho de Melo committed Mar 5, 2012
1 parent 783d171 commit c2035b7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 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: 67cbbd7f1838cc8f6900f39d860d6c2e1f86cf61
refs/heads/master: 58e817d997d162682717dcaae39393dcadf5f296
9 changes: 6 additions & 3 deletions trunk/tools/perf/util/ui/browsers/annotate.c
Original file line number Diff line number Diff line change
Expand Up @@ -69,14 +69,17 @@ static void annotate_browser__write(struct ui_browser *self, void *entry, int ro
if (!self->navkeypressed)
width += 1;

if (!ab->hide_src_code && ol->offset != -1)
if (!current_entry || (self->use_navkeypressed &&
!self->navkeypressed))
ui_browser__set_color(self, HE_COLORSET_CODE);

if (!*ol->line)
slsmg_write_nstring(" ", width - 18);
else
slsmg_write_nstring(ol->line, width - 18);

if (!current_entry)
ui_browser__set_color(self, HE_COLORSET_CODE);
else
if (current_entry)
ab->selection = ol;
}

Expand Down

0 comments on commit c2035b7

Please sign in to comment.