diff options
author | Bram Moolenaar <Bram@vim.org> | 2018-10-13 19:06:27 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2018-10-13 19:06:27 +0200 |
commit | d6105cb4085ad166910897a640693d3bada603e1 (patch) | |
tree | 703f714dd1e7e65c7df4a370683373c8939b3766 /src/memline.c | |
parent | 6cdb2c9811c33dbd312a5a2b711ee83f512ae7b2 (diff) | |
download | vim-git-d6105cb4085ad166910897a640693d3bada603e1.tar.gz |
patch 8.1.0473: user doesn't notice file does not exist when swap file doesv8.1.0473
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.
Diffstat (limited to 'src/memline.c')
-rw-r--r-- | src/memline.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/memline.c b/src/memline.c index 0881e6c7a..9789349fa 100644 --- 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 */ |