diff options
Diffstat (limited to 'usr.bin/more/position.c')
-rw-r--r-- | usr.bin/more/position.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/usr.bin/more/position.c b/usr.bin/more/position.c index 57ffb32985be..d9d818302192 100644 --- a/usr.bin/more/position.c +++ b/usr.bin/more/position.c @@ -113,6 +113,10 @@ add_back_pos(pos) table[0] = pos; } +/* + * Remove any NULL_POSITION markers from the top of the table, moving + * the bottom part up, if necessary. + */ copytable() { register int a, b; @@ -148,6 +152,9 @@ pos_clear() * See if the byte at a specified position is currently on the screen. * Check the position table to see if the position falls within its range. * Return the position table entry if found, -1 if not. + * + * This function doesn't really work when horizontal scrolling is enabled. + * I suspect it may not work in a few other cases, too. */ onscreen(pos) off_t pos; |