Fix psql's --help=commands output line count.
authorTom Lane <tgl@sss.pgh.pa.us>
Tue, 5 Sep 2017 20:41:22 +0000 (16:41 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Tue, 5 Sep 2017 20:41:22 +0000 (16:41 -0400)
Evidently somebody neglected to update this sometime in the v10 cycle.

Patching REL_10_STABLE only; this value is about to be obsolete in
HEAD anyway.  Noted while examining \gdesc patch.

src/bin/psql/help.c

index b3dbb5946eac091535a2d210f717d83047184b8d..57b826af1669a6ca710282a6e2a410e203f44948 100644 (file)
@@ -167,7 +167,7 @@ slashUsage(unsigned short int pager)
     * Use "psql --help=commands | wc" to count correctly.  It's okay to count
     * the USE_READLINE line even in builds without that.
     */
-   output = PageOutput(122, pager ? &(pset.popt.topt) : NULL);
+   output = PageOutput(124, pager ? &(pset.popt.topt) : NULL);
 
    fprintf(output, _("General\n"));
    fprintf(output, _("  \\copyright             show PostgreSQL usage and distribution terms\n"));