notepad-plus-plus/PowerEditor
Don Ho 50b81eadef Backup session file in case of its corruption
It could be, in certain unknown circumstances, the session file (session.xml) is saved with the incorrect characters (for example NUL characters) which leads session file corrupted and empty session loaded on the next launch. This commit makes a backup of session file before rewritting it, then check the session file after it having been writting - if written session file is corrupted, the backup session file will be restored, otherwise the backup file will be removed.

Ref:
1. https://github.com/notepad-plus-plus/notepad-plus-plus/issues/6133#issuecomment-1121781830
2. https://github.com/notepad-plus-plus/notepad-plus-plus/issues/6133#issuecomment-1544703701

Fix #13514, close #13648
2023-05-15 05:59:14 +02:00
..
Test Added Hollywood support 2023-03-26 23:39:47 +02:00
bin Notepad++ v8.5.2 release 2023-04-06 14:12:52 +02:00
gcc Code enhancement: add -Wextra flag for GCC builds 2023-02-13 23:55:35 +01:00
installer [xml] Update german.xml 2023-05-12 04:32:59 +02:00
misc/chameleon
scintilla.original.forUpdating Update scintilla 5.3.4 and lexilla 5.2.4 with: 2023-03-13 21:06:09 +01:00
src Backup session file in case of its corruption 2023-05-15 05:59:14 +02:00
visual.net GUI enhancement: Find Characters in Range dialog 2023-05-02 04:58:52 +02:00