18 lines
541 B
Plaintext
18 lines
541 B
Plaintext
$OpenBSD: patch-search_c,v 1.1 2003/10/26 16:05:29 naddy Exp $
|
|
--- search.c.orig 2003-07-03 03:18:06.000000000 +0200
|
|
+++ search.c 2003-10-26 16:58:31.000000000 +0100
|
|
@@ -769,8 +769,12 @@ int do_replace(void)
|
|
|
|
int do_gotoline(int line, int save_pos)
|
|
{
|
|
+ static char *linestr = NULL;
|
|
+
|
|
+ linestr = mallocstrcpy(linestr, answer);
|
|
+
|
|
if (line <= 0) { /* Ask for it */
|
|
- int st = statusq(FALSE, goto_list, line != 0 ? answer : "",
|
|
+ int st = statusq(FALSE, goto_list, line != 0 ? linestr : "",
|
|
#ifndef NANO_SMALL
|
|
NULL,
|
|
#endif
|