]> git.deb.at Git - pkg/abook.git/commitdiff
- move highlight_line
authorJaakko Heinonen <jheinonen@users.sourceforge.net>
Tue, 5 Sep 2006 08:21:35 +0000 (08:21 +0000)
committerJaakko Heinonen <jheinonen@users.sourceforge.net>
Tue, 5 Sep 2006 08:21:35 +0000 (08:21 +0000)
list.c

diff --git a/list.c b/list.c
index 9b39b7e9f03b1bc4d8ff9033c9e8e5ebbac32852..55046927e30303aa42a85268064662079da1bd90 100644 (file)
--- 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()
 {