> Bo Peng wrote:
> > Can I apply?
>
> OK.
Committed along with a fix for another case: when a buffer is saved in
another name, the checksum of the newfile name needs to be saved.
Otherwise, 'file->new, save as new filename', 'file->new, save as
existing file', 'file->save as, modify, file->save' will also trigger
this 'externally modified' message box.
No status.15x entry because it is a new feature that is already
mentioned in this file.
Relevant code is attached:
Bo
Index: src/callback.cpp
===================================================================
--- src/callback.cpp (revision 20030)
+++ src/callback.cpp (working copy)
@@ -194,10 +194,12 @@
buffer->markDirty();
bool unnamed = buffer->isUnnamed();
buffer->setUnnamed(false);
+ buffer->saveCheckSum(fname);
if (!menuWrite(buffer)) {
buffer->setFileName(oldname);
buffer->setUnnamed(unnamed);
+ buffer->saveCheckSum(oldname);
return false;
}