]> granicus.if.org Git - vim/commitdiff
updated for version 7.2-272 v7.2.272
authorBram Moolenaar <Bram@vim.org>
Tue, 3 Nov 2009 12:06:23 +0000 (12:06 +0000)
committerBram Moolenaar <Bram@vim.org>
Tue, 3 Nov 2009 12:06:23 +0000 (12:06 +0000)
src/memline.c
src/version.c

index 8c8019ab7be04965e156d3985d4b885bed53b881..eba3561a75eab805ef9b7e8a64b79c443c2bcbb5 100644 (file)
@@ -864,21 +864,24 @@ ml_recover()
     recoverymode = TRUE;
     called_from_main = (curbuf->b_ml.ml_mfp == NULL);
     attr = hl_attr(HLF_E);
-/*
- * If the file name ends in ".sw?" we use it directly.
- * Otherwise a search is done to find the swap file(s).
- */
+
+    /*
+     * If the file name ends in ".s[uvw][a-z]" we assume this is the swap file.
+     * Otherwise a search is done to find the swap file(s).
+     */
     fname = curbuf->b_fname;
     if (fname == NULL)             /* When there is no file name */
        fname = (char_u *)"";
     len = (int)STRLEN(fname);
     if (len >= 4 &&
 #if defined(VMS) || defined(RISCOS)
-           STRNICMP(fname + len - 4, "_sw" , 3)
+           STRNICMP(fname + len - 4, "_s" , 2)
 #else
-           STRNICMP(fname + len - 4, ".sw" , 3)
+           STRNICMP(fname + len - 4, ".s" , 2)
 #endif
-               == 0)
+               == 0
+               && vim_strchr((char_u *)"UVWuvw", fname[len - 2]) != NULL
+               && ASCII_ISALPHA(fname[len - 1]))
     {
        directly = TRUE;
        fname = vim_strsave(fname); /* make a copy for mf_open() */
index 7e6b39d90eba874063ec2816a2ecf26efd6d6dfc..9dff42c0074d104adf2f6d5bf159d3733fef81a7 100644 (file)
@@ -676,6 +676,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    272,
 /**/
     271,
 /**/