changeset 14923:95400980f7c9 v8.1.0473

patch 8.1.0473: user doesn't notice file does not exist when swap file does commit https://github.com/vim/vim/commit/d6105cb4085ad166910897a640693d3bada603e1 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Oct 13 19:06:27 2018 +0200 patch 8.1.0473: user doesn't notice file does not exist when swap file does 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.
author Bram Moolenaar <Bram@vim.org>
date Sat, 13 Oct 2018 19:15:04 +0200
parents d80140a3b26f
children 23367c9dd4d1
files src/memline.c src/version.c
diffstat 2 files changed, 8 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/memline.c
+++ b/src/memline.c
@@ -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 */
--- a/src/version.c
+++ b/src/version.c
@@ -793,6 +793,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    473,
+/**/
     472,
 /**/
     471,