This commit was generated by cvs2svn to compensate for changes in r89010,
which included commits to RCS files with non-trunk default branches.
This commit is contained in:
commit
2228a60af1
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=89011
@ -111,6 +111,15 @@ vs_columns(sp, lp, lno, cnop, diffp)
|
|||||||
int ch, leftright, listset;
|
int ch, leftright, listset;
|
||||||
char *p;
|
char *p;
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Initialize the screen offset.
|
||||||
|
*/
|
||||||
|
scno = 0;
|
||||||
|
|
||||||
|
/* Leading number if O_NUMBER option set. */
|
||||||
|
if (O_ISSET(sp, O_NUMBER))
|
||||||
|
scno += O_NUMBER_LENGTH;
|
||||||
|
|
||||||
/* Need the line to go any further. */
|
/* Need the line to go any further. */
|
||||||
if (lp == NULL) {
|
if (lp == NULL) {
|
||||||
(void)db_get(sp, lno, 0, &lp, &len);
|
(void)db_get(sp, lno, 0, &lp, &len);
|
||||||
@ -122,7 +131,7 @@ vs_columns(sp, lp, lno, cnop, diffp)
|
|||||||
if (lp == NULL) {
|
if (lp == NULL) {
|
||||||
done: if (diffp != NULL) /* XXX */
|
done: if (diffp != NULL) /* XXX */
|
||||||
*diffp = 0;
|
*diffp = 0;
|
||||||
return (0);
|
return scno;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Store away the values of the list and leftright edit options. */
|
/* Store away the values of the list and leftright edit options. */
|
||||||
@ -130,15 +139,10 @@ done: if (diffp != NULL) /* XXX */
|
|||||||
leftright = O_ISSET(sp, O_LEFTRIGHT);
|
leftright = O_ISSET(sp, O_LEFTRIGHT);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Initialize the pointer into the buffer and screen and current
|
* Initialize the pointer into the buffer and current offset.
|
||||||
* offsets.
|
|
||||||
*/
|
*/
|
||||||
p = lp;
|
p = lp;
|
||||||
curoff = scno = 0;
|
curoff = 0;
|
||||||
|
|
||||||
/* Leading number if O_NUMBER option set. */
|
|
||||||
if (O_ISSET(sp, O_NUMBER))
|
|
||||||
scno += O_NUMBER_LENGTH;
|
|
||||||
|
|
||||||
/* Macro to return the display length of any signal character. */
|
/* Macro to return the display length of any signal character. */
|
||||||
#define CHLEN(val) (ch = *(u_char *)p++) == '\t' && \
|
#define CHLEN(val) (ch = *(u_char *)p++) == '\t' && \
|
||||||
|
Loading…
Reference in New Issue
Block a user