/*
- * list.c
- * by JH <jheinonen@bigfoot.com>
+ * $Id$
+ *
+ * by JH <jheinonen@users.sourceforge.net>
*
* Copyright (C) Jaakko Heinonen
*/
#include <stdio.h>
#include <string.h>
-#include "abook_curses.h"
#include "abook.h"
+#include "ui.h"
#include "database.h"
#include "edit.h"
#include "list.h"
werase(list);
- print_number_of_items();
+ ui_print_number_of_items();
if( items < 1 ) {
refresh();
char tmp[MAX_EMAILSTR_LEN];
int extra_column = options_get_int("extra_column");
int real_emaillen = (extra_column > 2 && extra_column < ITEM_FIELDS) ?
- EMAILLEN : EMAILPOS - COLS;
+ EMAILLEN : COLS - EMAILPOS;
scrollok(list, FALSE);
selected[i] = !selected[i];
}
+int
+list_current_item()
+{
+ return curitem;
+}
+
+int
+list_is_empty()
+{
+ return items < 1;
+}
+
+