From: Jaakko Heinonen Date: Tue, 5 Sep 2006 08:21:35 +0000 (+0000) Subject: - move highlight_line X-Git-Tag: upstream/0.6.1~2^2~89 X-Git-Url: https://git.deb.at/?a=commitdiff_plain;h=b8c3c825e80317c07c8864d4dfb5054f8a5b8658;p=pkg%2Fabook.git - move highlight_line --- diff --git a/list.c b/list.c index 9b39b7e..5504692 100644 --- a/list.c +++ b/list.c @@ -191,6 +191,33 @@ print_list_field(int item, int line, int *x_pos, struct index_elem *e) *x_pos += len ? len : width; } +static void +highlight_line(WINDOW *win, int line) +{ + wstandout(win); + + /* + * this is a tricky one + */ +#if 0 +/*#ifdef mvwchgat*/ + mvwchgat(win, line, 0, -1, A_STANDOUT, 0, NULL); +#else + /* + * buggy function: FIXME + */ + scrollok(win, FALSE); + { + int i; + wmove(win, line, 0); + for(i = 0; i < COLS; i++) + waddch(win, ' '); + /*wattrset(win, 0);*/ + } + scrollok(win, TRUE); +#endif +} + static void print_list_line(int item, int line, int highlight) { @@ -422,33 +449,6 @@ goto_end() refresh_list(); } -static void -highlight_line(WINDOW *win, int line) -{ - wstandout(win); - - /* - * this is a tricky one - */ -#if 0 -/*#ifdef mvwchgat*/ - mvwchgat(win, line, 0, -1, A_STANDOUT, 0, NULL); -#else - /* - * buggy function: FIXME - */ - scrollok(win, FALSE); - { - int i; - wmove(win, line, 0); - for(i = 0; i < COLS; i++) - waddch(win, ' '); - /*wattrset(win, 0);*/ - } - scrollok(win, TRUE); -#endif -} - int selected_items() {