Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F154504481
D52127.id160833.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
769 B
Referenced Files
None
Subscribers
None
D52127.id160833.diff
View Options
diff --git a/contrib/mandoc/roff_term.c b/contrib/mandoc/roff_term.c
--- a/contrib/mandoc/roff_term.c
+++ b/contrib/mandoc/roff_term.c
@@ -165,6 +165,7 @@
static int polast; /* Previously requested. */
static int po; /* Currently requested. */
static int pouse; /* Currently used. */
+ int pomin; /* Minimum to be used. */
int pomax; /* Maximum to be used. */
int ponew; /* Newly requested. */
@@ -186,9 +187,9 @@
po = ponew;
/* Truncate to the range [-offset, 60], remember, and apply it. */
+ pomin = -p->tcol->offset;
pomax = term_len(p, 60);
- pouse = po >= pomax ? pomax :
- po < -(int)p->tcol->offset ? -p->tcol->offset : po;
+ pouse = po > pomax ? pomax : po < pomin ? pomin : po;
p->tcol->offset += pouse;
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Apr 29, 7:04 PM (16 h, 44 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
32378133
Default Alt Text
D52127.id160833.diff (769 B)
Attached To
Mode
D52127: mandoc: Improve width calculation for GCC compat
Attached
Detach File
Event Timeline
Log In to Comment