OpenBSD CVS

CVS log for src/usr.bin/vis/foldit.c


[BACK] Up to [local] / src / usr.bin / vis

Request diff between arbitrary revisions


Default branch: MAIN
Current tag: OPENBSD_6_8


Revision 1.8 / (download) - annotate - [select for diffs], Mon Aug 17 18:41:23 2020 UTC (3 years, 9 months ago) by martijn
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, OPENBSD_7_4_BASE, OPENBSD_7_4, OPENBSD_7_3_BASE, OPENBSD_7_3, OPENBSD_7_2_BASE, OPENBSD_7_2, OPENBSD_7_1_BASE, OPENBSD_7_1, OPENBSD_7_0_BASE, OPENBSD_7_0, OPENBSD_6_9_BASE, OPENBSD_6_9, OPENBSD_6_8_BASE, OPENBSD_6_8, HEAD
Changes since 1.7: +5 -1 lines
Diff to previous 1.7 (colored)

-F requires at least 5 columns for folding, while a tab at start of line is
8 columns. This causes an infinite loop in the folding logic.

Fix this by implementing an escape hatch so that only a single fold can
occur. This does mean that a tab with a -F smaller or equal to 8 will
always print the newline escape backslash in the 8th column.

Bug reported by phillbush <at> cock <dot> li

Minor tweak and OK deraadt@

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.