#141 startup cursor position

open
Mark Hessling
None
5
2007-03-27
2007-03-22
Anonymous
No

Hi!
patch for wrong position:
x-------------x
--- edit.c 2006-08-16 14:26:36.000000000 +0000
+++ edit.mod 2007-03-22 07:45:46.000000000 +0000
@@ -445,6 +445,10 @@
if (startup_line != 0
|| startup_column != 0)
{
+ if (startup_line == 0)
+ startup_line++;
+ if (startup_column == 0)
+ startup_column++;
THEcursor_goto( startup_line, startup_column );
}
filetabs_start_view = NULL;
x-------------x

Discussion

  • Mark Hessling
    Mark Hessling
    2007-03-27

    Logged In: YES
    user_id=86185
    Originator: NO

    What problem does this fix?
    I've tried:
    the -c10 file
    and:
    the -l10 file
    and both position the cursor correctly.
    If I apply the patch, then for:
    the -c10 filename
    the cursor will end up on line 1, rather than currently line 0.

    Cheers, Mark

     
  • Mark Hessling
    Mark Hessling
    2007-03-27

    • assigned_to: nobody --> rexx