X-Git-Url: https://git.deb.at/?a=blobdiff_plain;ds=sidebyside;f=list.c;h=29ba97263c37be392ab34474091febd87896bada;hb=222e22ada1c558d43a2dde71bc16c0475874a4a1;hp=cf2befa13b2401ddee846eacbfcc0da57b2e7cb7;hpb=3212da92838c056bcc1cafa57beaf26086e2ac96;p=pkg%2Fabook.git diff --git a/list.c b/list.c index cf2befa..29ba972 100644 --- a/list.c +++ b/list.c @@ -2,7 +2,7 @@ /* * $Id$ * - * by JH + * by JH * * Copyright (C) Jaakko Heinonen */ @@ -87,7 +87,7 @@ print_list_line(int i, int line) 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); @@ -300,7 +300,7 @@ list_current_item() inline int list_is_empty() { - return items < 1 ? 1 : 0; + return items < 1; }