Make *-lyxformat-* backup files use .lyx~ extension

At least now that look like real backup files
This commit is contained in:
Jean-Marc Lasgouttes 2016-09-09 10:37:42 +02:00
parent df11db1dd3
commit d12ebb00b9

View File

@ -1322,7 +1322,7 @@ Buffer::ReadStatus Buffer::convertLyXFormat(FileName const & fn,
FileName Buffer::getBackupName() const {
FileName const & fn = fileName();
string const fname = fn.onlyFileNameWithoutExt();
string const fext = fn.extension();
string const fext = fn.extension() + "~";
string const fpath = lyxrc.backupdir_path.empty() ?
fn.onlyPath().absFileName() :
lyxrc.backupdir_path;