Various improvements to undo file code to make it more robust.

This commit is contained in:
Bram Moolenaar
2010-05-29 20:33:07 +02:00
parent f05e3b0220
commit 9db580634c
7 changed files with 563 additions and 483 deletions

View File

@ -267,10 +267,7 @@ Reading an existing undo file may fail for several reasons:
The file text differs from when the undo file was written. This means
the undo file cannot be used, it would corrupt the text. This also
happens when 'encoding' differs from when the undo file was written.
*E825* *E826* *E831*
The undo file does not contain valid contents and cannot be used.
*E827* The magic number at the end of the file was not found. This usually
means the file was truncated.
*E825* The undo file does not contain valid contents and cannot be used.
Writing an undo file may fail for these reasons:
*E828* The file to be written cannot be created. Perhaps you do not have