From: Jaakko Heinonen Date: Wed, 11 Jul 2001 14:43:09 +0000 (+0000) Subject: Minor cleanups X-Git-Tag: upstream/0.6.1~2^2~353 X-Git-Url: https://git.deb.at/w?a=commitdiff_plain;h=20d193a1aeeaf6e493ac01e418de578b74797763;p=pkg%2Fabook.git Minor cleanups --- diff --git a/ChangeLog b/ChangeLog index ecc1032..0bdd7c3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,10 +1,13 @@ +0.4.14 + - minor html filter update + 0.4.13 - major code reorganization (phase 1) - fixed help viewer functions - ability to disable use of non-ascii characters (configuration option) - changed SIGINT behaviour - html export filter creates now valid html documents - - ablity to print/export only selected items + - ability to print/export only selected items - new editor commands - text filter update - query/find code cleanup diff --git a/configure b/configure index 2facc7b..9e4b50c 100755 --- a/configure +++ b/configure @@ -695,7 +695,7 @@ fi PACKAGE=abook -VERSION=0.4.13 +VERSION=0.4.14-cvs if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; } diff --git a/configure.in b/configure.in index f85da8d..7995fe4 100644 --- a/configure.in +++ b/configure.in @@ -1,7 +1,7 @@ dnl abook configure.in AC_INIT(abook.c) -AM_INIT_AUTOMAKE(abook, 0.4.13) +AM_INIT_AUTOMAKE(abook, 0.4.14-cvs) AM_CONFIG_HEADER(config.h) AC_CANONICAL_HOST diff --git a/ui.c b/ui.c index 9a19df7..22c8362 100644 --- a/ui.c +++ b/ui.c @@ -345,12 +345,10 @@ clear_statusline() refresh(); } - /* - * help - need to rewrite + * help */ - #include "help.h" void @@ -390,7 +388,6 @@ display_help(int help) delwin(helpw); } - /* * end of help */ @@ -514,7 +511,7 @@ void ui_find(int next) { int item; - static char findstr[81]; + static char findstr[MAX_FIELD_LEN]; int search_fields[] = {NAME, EMAIL, NICK, -1}; if(next) { @@ -523,11 +520,11 @@ ui_find(int next) } else { clear_statusline(); statusline_addstr("/"); - statusline_getnstr(findstr, 67, 0); + statusline_getnstr(findstr, MAX_FIELD_LEN - 1, 0); clear_statusline(); } - if( (item = find_item(findstr, next ? curitem+1 : curitem, + if( (item = find_item(findstr, curitem + !!next, search_fields )) >= 0 ) { curitem = item; refresh_list();