Line 0
Link Here
|
|
|
1 |
$NetBSD: patch-main.c,v 1.1 2011/04/01 13:12:24 wiz Exp $ |
2 |
|
3 |
Fix for crash with a segv if called as jmacs with more then |
4 |
one file as an argument on the command line from upstream. |
5 |
|
6 |
http://joe-editor.cvs.sourceforge.net/viewvc/joe-editor/joe-current/main/main.c?r1=1.5&r2=1.6 |
7 |
|
8 |
--- main.c.orig 2008-10-27 03:01:11.000000000 +0000 |
9 |
+++ main.c |
10 |
@@ -431,7 +431,7 @@ int main(int argc, char **real_argv, cha |
11 |
b->orphan = 1; |
12 |
b->oldcur = pdup(b->bof, USTR "main"); |
13 |
pline(b->oldcur, get_file_pos(b->name)); |
14 |
- p_goto_bol(bw->cursor); |
15 |
+ p_goto_bol(b->oldcur); |
16 |
line = b->oldcur->line - (maint->h - 1) / 2; |
17 |
if (line < 0) |
18 |
line = 0; |