aboutsummaryrefslogtreecommitdiffstats
path: root/com32/rosh
diff options
context:
space:
mode:
authorGene Cumm <gene.cumm@gmail.com>2010-07-01 21:57:45 -0400
committerGene Cumm <gene.cumm@gmail.com>2010-07-07 09:58:56 -0400
commit8f38bdc111eca5eb0683b8f385d5aa155f8f9e5a (patch)
tree0c85dc85cd821dc84d8086ae35f6a401d7d458ec /com32/rosh
parentb9c4642f9e56e50600251081033bb7ce7044f611 (diff)
downloadsyslinux-8f38bdc111eca5eb0683b8f385d5aa155f8f9e5a.tar.gz
syslinux-8f38bdc111eca5eb0683b8f385d5aa155f8f9e5a.tar.xz
syslinux-8f38bdc111eca5eb0683b8f385d5aa155f8f9e5a.zip
rosh: more: if it's the first line, dump it to screen for now even if it's too long
Diffstat (limited to 'com32/rosh')
-rw-r--r--com32/rosh/rosh.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/com32/rosh/rosh.c b/com32/rosh/rosh.c
index b35b8949..594c8008 100644
--- a/com32/rosh/rosh.c
+++ b/com32/rosh/rosh.c
@@ -775,7 +775,6 @@ void rosh_dir(const char *cmdstr)
/* Page through a buffer string
* buf Buffer to page through
*/
-//HERE: minor pagination issue; sometimes prints 1 less than rows
void rosh_more_buf(char *buf, int buflen, int rows, int cols)
{
char *bufp, *bufeol, *bufeol2; /* Pointer to current and next
@@ -804,7 +803,9 @@ void rosh_more_buf(char *buf, int buflen, int rows, int cols)
i += elpl;
ROSH_DEBUG2(" %d/%d ", elpl, i+1);
/* If this will not push too much, use it */
- if (i < numln)
+ /* but if it's the first line, use it */
+ /* //HERE: We should probably snip the line off */
+ if ((i < numln) || ((i == elpl) && (i >= numln)))
bufeol = bufeol2 + 1;
}
}