* keyserver.c (keyserver_search_prompt): When --with-colons is enabled,
authorDavid Shaw <dshaw@jabberwocky.com>
Tue, 5 Nov 2002 16:11:04 +0000 (16:11 +0000)
committerDavid Shaw <dshaw@jabberwocky.com>
Tue, 5 Nov 2002 16:11:04 +0000 (16:11 +0000)
don't try and fit the search output to the screen size - just dump the
whole list.

g10/ChangeLog
g10/keyserver.c

index 953fc81..6d65b98 100644 (file)
@@ -1,3 +1,9 @@
+2002-11-05  David Shaw  <dshaw@jabberwocky.com>
+
+       * keyserver.c (keyserver_search_prompt): When --with-colons is
+       enabled, don't try and fit the search output to the screen size -
+       just dump the whole list.
+
 2002-11-04  David Shaw  <dshaw@jabberwocky.com>
 
        * keyserver.c (keyserver_search_prompt): When --with-colons is
index c821825..e09ede6 100644 (file)
@@ -624,17 +624,19 @@ keyserver_search_prompt(IOBUF buffer,const char *searchstr)
        {
          desc[i]=keyrec->desc;
 
-         if(numlines+keyrec->lines>maxlines)
+         if(!opt.with_colons)
            {
-             if(show_prompt(desc,i,validcount?count:0,searchstr))
-               break;
-             else
-               numlines=0;
-           }
+             if(numlines+keyrec->lines>maxlines)
+               {
+                 if(show_prompt(desc,i,validcount?count:0,searchstr))
+                   break;
+                 else
+                   numlines=0;
+               }
 
+             print_keyrec(i+1,keyrec);
+           }
 
-         if(!opt.with_colons)
-           print_keyrec(i+1,keyrec);
          numlines+=keyrec->lines;
          iobuf_close(keyrec->uidbuf);
          m_free(keyrec);