* src/files.c (write_file): Don't re-stat() the file if we're writing out
a marked file (especially that would give it the wrong stat info). Part 2 of issue reported by Benno Schulenberg. git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4575 35c25a1d-7b9e-4130-9fde-d3aeb78583b8master
parent
6251358746
commit
2d34586c43
|
@ -1,6 +1,9 @@
|
||||||
2013-04-12 Chris Allegretta <chrisa@asty.org>
|
2013-04-12 Chris Allegretta <chrisa@asty.org>
|
||||||
* src/files.c (do_insertfile): Check for saved cursor position when inserting a
|
* src/files.c (do_insertfile): Check for saved cursor position when inserting a
|
||||||
file as well. Fixes Savannah bug 38600 reported by Craig Barnes.
|
file as well. Fixes Savannah bug 38600 reported by Craig Barnes.
|
||||||
|
* src/files.c (write_file): Don't re-stat() the file if we're writing out
|
||||||
|
a marked file (especially that would give it the wrong stat info). Part
|
||||||
|
2 of issue reported by Benno Schulenberg.
|
||||||
|
|
||||||
2013-04-07 Michael Berg <mike@berg-net.us>
|
2013-04-07 Michael Berg <mike@berg-net.us>
|
||||||
* do_cut_text - Fix copying (not cutting) text setting Modified state. Fixes
|
* do_cut_text - Fix copying (not cutting) text setting Modified state. Fixes
|
||||||
|
|
|
@ -2139,7 +2139,8 @@ bool write_file(const char *name, FILE *f_open, bool tmp, append_type
|
||||||
if (openfile->current_stat == NULL)
|
if (openfile->current_stat == NULL)
|
||||||
openfile->current_stat =
|
openfile->current_stat =
|
||||||
(struct stat *)nmalloc(sizeof(struct stat));
|
(struct stat *)nmalloc(sizeof(struct stat));
|
||||||
stat(realname, openfile->current_stat);
|
if (!openfile->mark_set)
|
||||||
|
stat(realname, openfile->current_stat);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
statusbar(P_("Wrote %lu line", "Wrote %lu lines",
|
statusbar(P_("Wrote %lu line", "Wrote %lu lines",
|
||||||
|
|
Loading…
Reference in New Issue