aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Edmund Lazo <janedmundlazo@hotmail.com>2018-10-13 17:08:17 -0400
committerJan Edmund Lazo <janedmundlazo@hotmail.com>2018-10-13 17:13:47 -0400
commit726baefdf75959147831d3177527f1a991084197 (patch)
tree4fccba89dd580f58fd248f5c66681ce31cbc4c0c
parentd14283c7a0044226c13795d39654e8cbdd3b7250 (diff)
downloadrneovim-726baefdf75959147831d3177527f1a991084197.tar.gz
rneovim-726baefdf75959147831d3177527f1a991084197.tar.bz2
rneovim-726baefdf75959147831d3177527f1a991084197.zip
vim-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. https://github.com/vim/vim/commit/d6105cb4085ad166910897a640693d3bada603e1
-rw-r--r--src/nvim/memline.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/nvim/memline.c b/src/nvim/memline.c
index 51f99db0de..5811ac0963 100644
--- a/src/nvim/memline.c
+++ b/src/nvim/memline.c
@@ -1527,7 +1527,7 @@ static time_t swapfile_info(char_u *fname)
msg_outnum(char_to_long(b0.b0_pid));
#if defined(UNIX)
if (kill((pid_t)char_to_long(b0.b0_pid), 0) == 0) {
- MSG_PUTS(_(" (still running)"));
+ MSG_PUTS(_(" (STILL RUNNING)"));
process_still_running = TRUE;
}
#endif
@@ -3150,7 +3150,9 @@ attention_message (
msg_outtrans(buf->b_fname);
MSG_PUTS("\"\n");
FileInfo file_info;
- if (os_fileinfo((char *)buf->b_fname, &file_info)) {
+ if (!os_fileinfo((char *)buf->b_fname, &file_info)) {
+ MSG_PUTS(_(" CANNOT BE FOUND"));
+ } else {
MSG_PUTS(_(" dated: "));
x = file_info.stat.st_mtim.tv_sec;
p = ctime(&x); // includes '\n'