]>
Commit | Line | Data |
---|---|---|
a935ab01 | 1 | To: vim-dev@vim.org |
2 | Subject: Patch 5.7.001 | |
3 | Fcc: outbox | |
4 | From: Bram Moolenaar <Bram@moolenaar.net> | |
5 | ------------ | |
6 | ||
7 | Patch 5.7.001 | |
8 | Problem: When the current buffer is crypted, and another modified buffer | |
9 | isn't, ":wall" will encrypt the other buffer. | |
10 | Solution: In buf_write() use "buf" instead of "curbuf" to check for the | |
11 | crypt key. | |
12 | Files: src/fileio.c | |
13 | ||
14 | ||
15 | *** ../vim-5.7/src/fileio.c Sat Jun 24 13:54:27 2000 | |
16 | --- src/fileio.c Sun Jun 25 20:14:38 2000 | |
17 | *************** | |
18 | *** 1857,1865 **** | |
19 | start = end + 1; | |
20 | ||
21 | #ifdef CRYPTV | |
22 | ! if (*curbuf->b_p_key) | |
23 | { | |
24 | ! crypt_init_keys(curbuf->b_p_key); | |
25 | encrypted = TRUE; | |
26 | /* Write magic number, so that Vim knows that this file is encrypted | |
27 | * when reading it again */ | |
28 | --- 1857,1865 ---- | |
29 | start = end + 1; | |
30 | ||
31 | #ifdef CRYPTV | |
32 | ! if (*buf->b_p_key) | |
33 | { | |
34 | ! crypt_init_keys(buf->b_p_key); | |
35 | encrypted = TRUE; | |
36 | /* Write magic number, so that Vim knows that this file is encrypted | |
37 | * when reading it again */ | |
38 | *** ../vim-5.7/src/version.c Sat Jun 24 13:54:21 2000 | |
39 | --- src/version.c Sun Jun 25 20:14:50 2000 | |
40 | *************** | |
41 | *** 439,440 **** | |
42 | --- 439,442 ---- | |
43 | { /* Add new patch number below this line */ | |
44 | + /**/ | |
45 | + 1, | |
46 | /**/ | |
47 | ||
48 | -- | |
49 | In a world without walls and borders, who needs windows and gates? | |
50 | ||
51 | /-/-- Bram Moolenaar --- Bram@moolenaar.net --- http://www.moolenaar.net --\-\ | |
52 | \-\-- Vim: http://www.vim.org ---- ICCF Holland: http://www.vim.org/iccf --/-/ |