mirror of
https://github.com/MidnightCommander/mc
synced 2025-01-03 18:14:25 +03:00
* util.c (save_file_position): Only save the position if not
at the beginning of the file (1;0).
This commit is contained in:
parent
20bc9ef7f9
commit
2bf2f0c38d
@ -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().
|
||||
|
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user