Mercurial > vim
comparison src/crypt.c @ 25362:68a7e6d70a5e v8.2.3218
patch 8.2.3218: when using xchaha20 crypt undo file is not removed
Commit: https://github.com/vim/vim/commit/8a4c812ede5b01a8e71082c1ff4ebfcbf1bd515f
Author: Christian Brabandt <cb@256bit.org>
Date: Sun Jul 25 14:36:05 2021 +0200
patch 8.2.3218: when using xchaha20 crypt undo file is not removed
Problem: When using xchaha20 crypt undo file is not removed.
Solution: Reset 'undofile' and delete the file. (Christian Brabandt,
closes #8630, closes #8467)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 25 Jul 2021 14:45:04 +0200 |
parents | 85d1e82ed134 |
children | 1919361a53da |
comparison
equal
deleted
inserted
replaced
25361:7784e9d84ff6 | 25362:68a7e6d70a5e |
---|---|
614 { | 614 { |
615 // encryption uses padding and MAC, that does not work very well with | 615 // encryption uses padding and MAC, that does not work very well with |
616 // swap and undo files, so disable them | 616 // swap and undo files, so disable them |
617 mf_close_file(curbuf, TRUE); // remove the swap file | 617 mf_close_file(curbuf, TRUE); // remove the swap file |
618 set_option_value((char_u *)"swf", 0, NULL, OPT_LOCAL); | 618 set_option_value((char_u *)"swf", 0, NULL, OPT_LOCAL); |
619 #ifdef FEAT_PERSISTENT_UNDO | |
620 set_option_value((char_u *)"udf", 0, NULL, OPT_LOCAL); | |
621 #endif | |
622 msg_scroll = TRUE; | 619 msg_scroll = TRUE; |
623 msg(_("Note: Encryption of swapfile not supported, disabling swap- and undofile")); | 620 msg(_("Note: Encryption of swapfile not supported, disabling swap file")); |
624 } | 621 } |
625 } | 622 } |
626 #endif | 623 #endif |
627 | 624 |
628 void | 625 void |