Lines 546-550
Link Here
|
546 |
else |
546 |
else |
547 |
{ |
547 |
{ |
548 |
arg = mcedit_arg_vpath_new (tmp_vpath, 1); |
548 |
arg = mcedit_arg_vpath_new (tmp_vpath, 0); |
549 |
vfs_path_free (fname_vpath); |
549 |
vfs_path_free (fname_vpath); |
550 |
} |
550 |
} |
Lines 553-557
Link Here
|
553 |
} |
553 |
} |
554 |
else |
554 |
else |
555 |
arg = mcedit_arg_new (tmp, 1); |
555 |
arg = mcedit_arg_new (tmp, 0); |
556 |
|
556 |
|
557 |
flist = g_list_prepend (flist, arg); |
557 |
flist = g_list_prepend (flist, arg); |
Lines 559-570
Link Here
|
559 |
|
559 |
|
560 |
if (flist == NULL) |
560 |
if (flist == NULL) |
561 |
flist = g_list_prepend (flist, mcedit_arg_new (NULL, 1)); |
561 |
flist = g_list_prepend (flist, mcedit_arg_new (NULL, 0)); |
562 |
else if (first_line_number != -1) |
562 |
else if (first_line_number != -1) |
563 |
{ |
563 |
{ |
564 |
/* overwrite line number for first file */ |
564 |
/* overwrite line number for first file */ |
565 |
GList *l; |
565 |
GList *l; |
566 |
|
|
|
567 |
if (first_line_number == 0) |
568 |
first_line_number = 1; |
569 |
|
566 |
|
570 |
l = g_list_last (flist); |
567 |
l = g_list_last (flist); |
Lines 820-824
Link Here
|
820 |
* |
817 |
* |
821 |
* @param file_name file name |
818 |
* @param file_name file name |
822 |
* @param line_number line number |
819 |
* @param line_number line number. If value is 0, try to restore saved position. |
823 |
* @return mcedit_arg_t object |
820 |
* @return mcedit_arg_t object |
824 |
*/ |
821 |
*/ |
Lines 835-839
Link Here
|
835 |
* |
832 |
* |
836 |
* @param file_vpath file path object |
833 |
* @param file_vpath file path object |
837 |
* @param line_number line number |
834 |
* @param line_number line number. If value is 0, try to restore saved position. |
838 |
* @return mcedit_arg_t object |
835 |
* @return mcedit_arg_t object |
839 |
*/ |
836 |
*/ |
Lines 846-851
Link Here
|
846 |
arg = g_new (mcedit_arg_t, 1); |
843 |
arg = g_new (mcedit_arg_t, 1); |
847 |
arg->file_vpath = file_vpath; |
844 |
arg->file_vpath = file_vpath; |
848 |
if (line_number == 0) |
|
|
849 |
line_number = 1; |
850 |
arg->line_number = line_number; |
845 |
arg->line_number = line_number; |
851 |
|
846 |
|