mirror of
https://github.com/neovim/neovim.git
synced 2025-10-08 19:06:31 +00:00
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.
d6105cb408
This commit is contained in:
@@ -1527,7 +1527,7 @@ static time_t swapfile_info(char_u *fname)
|
|||||||
msg_outnum(char_to_long(b0.b0_pid));
|
msg_outnum(char_to_long(b0.b0_pid));
|
||||||
#if defined(UNIX)
|
#if defined(UNIX)
|
||||||
if (kill((pid_t)char_to_long(b0.b0_pid), 0) == 0) {
|
if (kill((pid_t)char_to_long(b0.b0_pid), 0) == 0) {
|
||||||
MSG_PUTS(_(" (still running)"));
|
MSG_PUTS(_(" (STILL RUNNING)"));
|
||||||
process_still_running = TRUE;
|
process_still_running = TRUE;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
@@ -3150,7 +3150,9 @@ attention_message (
|
|||||||
msg_outtrans(buf->b_fname);
|
msg_outtrans(buf->b_fname);
|
||||||
MSG_PUTS("\"\n");
|
MSG_PUTS("\"\n");
|
||||||
FileInfo file_info;
|
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: "));
|
MSG_PUTS(_(" dated: "));
|
||||||
x = file_info.stat.st_mtim.tv_sec;
|
x = file_info.stat.st_mtim.tv_sec;
|
||||||
p = ctime(&x); // includes '\n'
|
p = ctime(&x); // includes '\n'
|
||||||
|
Reference in New Issue
Block a user