4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=ISO-8859-1
7 Content-Transfer-Encoding: 8bit
11 Problem: Changing 'backupext' in a *WritePre autocommand doesn't work.
13 Solution: Move the use of p_bex to after executing the *WritePre
14 autocommands. Also avoids reading allocated memory after freeing.
18 *** ../vim-6.2.174/src/fileio.c Wed Nov 12 20:41:45 2003
19 --- src/fileio.c Thu Jan 8 20:22:41 2004
25 - /* make sure we have a valid backup extension to use */
28 - backup_ext = (char_u *)"/bak";
30 - backup_ext = (char_u *)".bak";
35 if (buf->b_ffname != NULL && fnamecmp(ffname, buf->b_ffname) == 0)
45 + /* make sure we have a valid backup extension to use */
49 + backup_ext = (char_u *)"/bak";
51 + backup_ext = (char_u *)".bak";
58 && (fd = mch_open((char *)fname, O_RDONLY | O_EXTRA, 0)) >= 0)
60 *** ../vim-6.2.174/src/version.c Thu Jan 8 20:54:45 2004
61 --- src/version.c Fri Jan 9 14:32:03 2004
65 { /* Add new patch number below this line */
71 hundred-and-one symptoms of being an internet addict:
72 203. You're an active member of more than 20 newsgroups.
74 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
75 /// Sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
76 \\\ Project leader for A-A-P -- http://www.A-A-P.org ///
77 \\\ Help AIDS victims, buy here: http://ICCF-Holland.org/click1.html ///