]> git.deb.at Git - pkg/abook.git/blobdiff - list.c
cancel key support added
[pkg/abook.git] / list.c
diff --git a/list.c b/list.c
index dddb84f45ddc0dc7a30a45ba6dc3aff10ab95a33..5bb6753a4d7be745bd82e6cc565427e629c68cd3 100644 (file)
--- a/list.c
+++ b/list.c
@@ -9,8 +9,8 @@
 
 #include <stdio.h>
 #include <string.h>
-#include <assert.h>
 #include "abook.h"
+#include <assert.h>
 #include "ui.h"
 #include "database.h"
 #include "edit.h"
@@ -110,8 +110,6 @@ refresh_list()
                        line++, i++ ) {
 
                print_list_line(i, line, i == curitem);
-
-               wstandend(list);
         }
 
         wrefresh(list);
@@ -149,7 +147,7 @@ print_list_line(int i, int line, int highlight)
                                EXTRALEN);
 
        scrollok(list, TRUE);
-       if(highlight_line)
+       if(highlight)
                wstandend(list);
 }
        
@@ -157,13 +155,19 @@ print_list_line(int i, int line, int highlight)
 void
 list_headerline()
 {
+#ifdef A_BOLD
        attrset(A_BOLD);
+#else
+       /* hmm, maybe something here */
+#endif
        mvaddstr(2, NAMEPOS, abook_fields[NAME].name);
        mvaddstr(2, EMAILPOS, abook_fields[EMAIL].name);
        if(extra_column > 0)
                mvaddnstr(2, EXTRAPOS, abook_fields[extra_column].name,
                                COLS-EXTRAPOS);
+#ifdef A_BOLD
        attrset(A_NORMAL);
+#endif
 }
 
 void
@@ -279,8 +283,12 @@ void
 highlight_line(WINDOW *win, int line)
 {
        wstandout(win);
-       
-#ifdef mvwchgat
+
+       /*
+        * this is a tricky one
+        */
+#if 0
+/*#ifdef mvwchgat*/
        mvwchgat(win, line, 0, -1,  A_STANDOUT, 0, NULL);
 #else
        /*