]> granicus.if.org Git - vim/commitdiff
patch 8.1.0473: user doesn't notice file does not exist when swap file does v8.1.0473
authorBram Moolenaar <Bram@vim.org>
Sat, 13 Oct 2018 17:06:27 +0000 (19:06 +0200)
committerBram Moolenaar <Bram@vim.org>
Sat, 13 Oct 2018 17:06:27 +0000 (19:06 +0200)
Problem:    User doesn't notice file does not exist when swap file does.
Solution:   Add a note that the file cannot be found.  Make the "still
            running" notice stand out.

src/memline.c
src/version.c

index 0881e6c7ad75181dd63e9f7bd030a817a32199cf..9789349faf495caa60bda5c5fcbebfb15e342887 100644 (file)
@@ -2177,7 +2177,7 @@ swapfile_info(char_u *fname)
                    /* EMX kill() not working correctly, it seems */
                    if (kill((pid_t)char_to_long(b0.b0_pid), 0) == 0)
                    {
-                       MSG_PUTS(_(" (still running)"));
+                       MSG_PUTS(_(" (STILL RUNNING)"));
 # if defined(FEAT_GUI_DIALOG) || defined(FEAT_CON_DIALOG)
                        process_still_running = TRUE;
 # endif
@@ -4089,7 +4089,11 @@ attention_message(
     MSG_PUTS(_("While opening file \""));
     msg_outtrans(buf->b_fname);
     MSG_PUTS("\"\n");
-    if (mch_stat((char *)buf->b_fname, &st) != -1)
+    if (mch_stat((char *)buf->b_fname, &st) == -1)
+    {
+       MSG_PUTS(_("      CANNOT BE FOUND"));
+    }
+    else
     {
        MSG_PUTS(_("             dated: "));
        x = st.st_mtime;    /* Manx C can't do &st.st_mtime */
index 1d1c1b29cc3ffa919ddaac0104cb8044264a71b2..995adff980bb31d2d733732619c2ac01e69b5d96 100644 (file)
@@ -792,6 +792,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    473,
 /**/
     472,
 /**/