openbsd-ports/games/ace/patches/patch-lib_help_c
2022-03-11 19:04:03 +00:00

17 lines
506 B
Plaintext

--- lib/help.c.orig Sat Mar 24 12:00:49 2012
+++ lib/help.c Wed Aug 3 00:53:26 2016
@@ -520,8 +520,11 @@ help(char *filename, char *text)
{
int end_para = 0;
Word *w = words+i;
- int ts = (thin_space[words[i-1].flags & STYLE_BITS]
- + thin_space[words[i].flags & STYLE_BITS])/2;
+ int ts = thin_space[words[i].flags & STYLE_BITS];
+ if (i != 0)
+ {
+ ts = (ts + thin_space[words[i-1].flags & STYLE_BITS])/2;
+ }
/* decide when we're done with a row */
#if 0