|
|
@ -1083,6 +1083,9 @@ bool FileManager::saveBuffer(BufferID id, const TCHAR * filename, bool isCopy, g
|
|
|
|
if (lengthDoc == 0)
|
|
|
|
if (lengthDoc == 0)
|
|
|
|
items_written = 1;
|
|
|
|
items_written = 1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// check the language du fichier
|
|
|
|
|
|
|
|
LangType language = detectLanguageFromTextBegining((unsigned char *)buf, lengthDoc);
|
|
|
|
|
|
|
|
|
|
|
|
UnicodeConvertor.fclose();
|
|
|
|
UnicodeConvertor.fclose();
|
|
|
|
|
|
|
|
|
|
|
@ -1122,12 +1125,11 @@ bool FileManager::saveBuffer(BufferID id, const TCHAR * filename, bool isCopy, g
|
|
|
|
return true; //all done
|
|
|
|
return true; //all done
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
buffer->setFileName(fullpath);
|
|
|
|
buffer->setFileName(fullpath, language);
|
|
|
|
buffer->setDirty(false);
|
|
|
|
buffer->setDirty(false);
|
|
|
|
buffer->setStatus(DOC_REGULAR);
|
|
|
|
buffer->setStatus(DOC_REGULAR);
|
|
|
|
buffer->checkFileState();
|
|
|
|
buffer->checkFileState();
|
|
|
|
_pscratchTilla->execute(SCI_SETSAVEPOINT);
|
|
|
|
_pscratchTilla->execute(SCI_SETSAVEPOINT);
|
|
|
|
//_pscratchTilla->markSavedLines();
|
|
|
|
|
|
|
|
_pscratchTilla->execute(SCI_SETDOCPOINTER, 0, _scratchDocDefault);
|
|
|
|
_pscratchTilla->execute(SCI_SETDOCPOINTER, 0, _scratchDocDefault);
|
|
|
|
|
|
|
|
|
|
|
|
generic_string backupFilePath = buffer->getBackupFileName();
|
|
|
|
generic_string backupFilePath = buffer->getBackupFileName();
|
|
|
|