* util.c (save_file_position): Only save the position if not

at the beginning of the file (1;0).
This commit is contained in:
Roland Illig 2005-07-23 08:20:03 +00:00
parent 20bc9ef7f9
commit 2bf2f0c38d
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2005-07-23 Roland Illig <roland.illig@gmx.de>
* util.c (save_file_position): Only save the position if not
at the beginning of the file (1;0).
2005-07-22 Roland Illig <roland.illig@gmx.de>
* charsets.c: Fixed wrong comparison of the result of iconv().

View File

@ -1394,7 +1394,9 @@ save_file_position (const char *filename, long line, long column)
}
/* put the new record */
fprintf (t, "%s %ld;%ld\n", filename, line, column);
if (line != 1 || column != 0) {
fprintf (t, "%s %ld;%ld\n", filename, line, column);
}
/* copy records from the old file */
f = fopen (fn, "r");