aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2018-10-13 14:40:16 -0700
committerGitHub <noreply@github.com>2018-10-13 14:40:16 -0700
commitaa87dd2b8943d7c52e9af657c76e60434fb35c95 (patch)
tree5435470288e1912c5bcd8d43816a6390bb2ae3e4
parentd14283c7a0044226c13795d39654e8cbdd3b7250 (diff)
parent12376cc01c73a0345248f161731919a46d04ba16 (diff)
downloadrneovim-aa87dd2b8943d7c52e9af657c76e60434fb35c95.tar.gz
rneovim-aa87dd2b8943d7c52e9af657c76e60434fb35c95.tar.bz2
rneovim-aa87dd2b8943d7c52e9af657c76e60434fb35c95.zip
Merge #9122 from janlazo/vim-8.1.0473
-rw-r--r--src/nvim/memline.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/nvim/memline.c b/src/nvim/memline.c
index 51f99db0de..9d1f542973 100644
--- a/src/nvim/memline.c
+++ b/src/nvim/memline.c
@@ -1449,7 +1449,7 @@ static char *make_percent_swname(const char *dir, char *name)
}
#ifdef UNIX
-static int process_still_running;
+static bool process_still_running;
#endif
/*
@@ -1527,8 +1527,8 @@ 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)"));
- process_still_running = TRUE;
+ 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'
@@ -3347,7 +3349,7 @@ static char *findswapname(buf_T *buf, char **dirp, char *old_fname,
int choice = 0;
#ifdef UNIX
- process_still_running = FALSE;
+ process_still_running = false;
#endif
/*
* If there is a SwapExists autocommand and we can handle