4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
11 Problem: "_.svz" is not recognized as a swap file. (David M. Besonen)
12 Solution: Accept .s[uvw][a-z] as a swap file name extension.
16 *** ../vim-7.2.271/src/memline.c 2009-04-22 15:56:27.000000000 +0200
17 --- src/memline.c 2009-10-29 20:55:08.000000000 +0100
21 called_from_main = (curbuf->b_ml.ml_mfp == NULL);
22 attr = hl_attr(HLF_E);
24 ! * If the file name ends in ".sw?" we use it directly.
25 ! * Otherwise a search is done to find the swap file(s).
27 fname = curbuf->b_fname;
28 if (fname == NULL) /* When there is no file name */
30 len = (int)STRLEN(fname);
32 #if defined(VMS) || defined(RISCOS)
33 ! STRNICMP(fname + len - 4, "_sw" , 3)
35 ! STRNICMP(fname + len - 4, ".sw" , 3)
40 fname = vim_strsave(fname); /* make a copy for mf_open() */
43 called_from_main = (curbuf->b_ml.ml_mfp == NULL);
44 attr = hl_attr(HLF_E);
47 ! * If the file name ends in ".s[uvw][a-z]" we assume this is the swap file.
48 ! * Otherwise a search is done to find the swap file(s).
50 fname = curbuf->b_fname;
51 if (fname == NULL) /* When there is no file name */
53 len = (int)STRLEN(fname);
55 #if defined(VMS) || defined(RISCOS)
56 ! STRNICMP(fname + len - 4, "_s" , 2)
58 ! STRNICMP(fname + len - 4, ".s" , 2)
61 ! && vim_strchr((char_u *)"UVWuvw", fname[len - 2]) != NULL
62 ! && ASCII_ISALPHA(fname[len - 1]))
65 fname = vim_strsave(fname); /* make a copy for mf_open() */
66 *** ../vim-7.2.271/src/version.c 2009-11-03 12:53:44.000000000 +0100
67 --- src/version.c 2009-11-03 13:02:51.000000000 +0100
71 { /* Add new patch number below this line */
77 Sorry, no fortune today.
79 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
80 /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
81 \\\ download, build and distribute -- http://www.A-A-P.org ///
82 \\\ help me help AIDS victims -- http://ICCF-Holland.org ///