* cmd.c (do_edit_at_line): Set line to 0 to allow the editor to

decide if the user cares about the initial line or not.
* main.c: Set edit_one_file_start_line to 0 initially.
This commit is contained in:
Pavel Roskin 2002-12-01 08:18:17 +00:00
parent 9fdebd7295
commit 1573a9581f
3 changed files with 10 additions and 3 deletions

View File

@ -1,3 +1,9 @@
2002-12-01 Pavel Roskin <proski@gnu.org>
* cmd.c (do_edit_at_line): Set line to 0 to allow the editor to
decide if the user cares about the initial line or not.
* main.c: Set edit_one_file_start_line to 0 initially.
2002-11-29 Pavel Roskin <proski@gnu.org>
* setup.c: Add option_save_position to the options table.

View File

@ -305,7 +305,7 @@ void do_edit_at_line (const char *what, int start_line)
static void
do_edit (const char *what)
{
do_edit_at_line (what, 1);
do_edit_at_line (what, 0);
}
void

View File

@ -278,7 +278,9 @@ char *view_one_file = 0;
/* File name to edit if argument was supplied */
char *edit_one_file = 0;
static int edit_one_file_start_line = 1;
/* Line to start the editor on */
static int edit_one_file_start_line = 0;
/* Used so that widgets know if they are being destroyed or
shut down */
@ -2301,7 +2303,6 @@ handle_args (int argc, char *argv[])
base = x_basename (argv[0]);
if (!STRNCOMP (base, "mce", 3) || !STRCOMP (base, "vi")) {
edit_one_file = "";
edit_one_file_start_line = 1;
if (tmp) {
if (*tmp == '+' && isdigit ((unsigned char) tmp[1])) {
int start_line = atoi (tmp);