75f3498214
With feedback, help and fixes from both kili@ and espie@. ok kili@, "go ahead" espie@ (MAINTAINER)
22 lines
761 B
Plaintext
22 lines
761 B
Plaintext
$OpenBSD: patch-src_manual_c,v 1.2 2007/11/19 18:31:03 mgrimm Exp $
|
|
--- src/manual.c.orig Sun Jul 8 17:10:13 2007
|
|
+++ src/manual.c Sun Jul 8 17:10:56 2007
|
|
@@ -797,7 +797,7 @@ man_initializelinks(char *tmp, int carry)
|
|
if ((!strchr(p_t1, '(')) &&(!is_in_manlinks(manlinks, p_t1)))
|
|
{
|
|
char tempchar;
|
|
- int breakpos;
|
|
+ int breakpos, cols_before_link;
|
|
i = mylink - tmp - 1;
|
|
if (i < 0)
|
|
i++;
|
|
@@ -830,7 +830,7 @@ man_initializelinks(char *tmp, int carry)
|
|
*/
|
|
|
|
/* calculate the number of columns in front of the link */
|
|
- int cols_before_link = width_of_string(tmp, i-1);
|
|
+ cols_before_link = width_of_string(tmp, i-1);
|
|
|
|
/* a small check */
|
|
if (!((use_apropos) &&(manualhistorylength == 0)))
|