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

At least now they look like real backup files.

(cherry picked from commit d12ebb00b9)
This commit is contained in:
Jean-Marc Lasgouttes 2016-09-09 10:37:42 +02:00
parent 181ecc51a7
commit 25640ce39c
2 changed files with 3 additions and 1 deletions

View File

@ -1321,7 +1321,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;

View File

@ -38,6 +38,8 @@ What's new
- Do not hardcode required packages for Note inset.
- Make *-lyxformat-* backup files use .lyx~ extension.
* LYX2LYX