Next default record position also set by last p=... in show.
authorAdam Dickmeiss <adam@indexdata.dk>
Mon, 22 May 1995 14:57:30 +0000 (14:57 +0000)
committerAdam Dickmeiss <adam@indexdata.dk>
Mon, 22 May 1995 14:57:30 +0000 (14:57 +0000)
kernel/urp.c

index 90b5cd1..ff1eaa0 100644 (file)
  * Europagate, 1995
  *
  * $Log: urp.c,v $
- * Revision 1.38  1995/05/19 13:26:00  adam
+ * Revision 1.39  1995/05/22 14:57:30  adam
+ * Next default record position also set by last p=... in show.
+ *
+ * Revision 1.38  1995/05/19  13:26:00  adam
  * Bug fixes. Better command line options.
  *
  * Revision 1.37  1995/05/18  12:03:09  adam
@@ -712,7 +715,7 @@ static int exec_show (struct ccl_token *list)
             {
                 fprintf (reply_fd, "%s\n",
                          gw_res_get (info.kernel_res, "gw.err.bad.show",
-                                     "Integer expected"));
+                                     "Syntax error"));
                 return -3;
             }
             li = li->next;
@@ -802,6 +805,7 @@ static int exec_show (struct ccl_token *list)
                     if (offset+number-1 > us->hits)
                         number = us->hits - offset+1;
                     present (us->name, offset, number, format_token);
+                    info.next_position = offset+number;
                 }
             }
             else if (!no_of_present) /* display error message once! */