mirror of
https://github.com/vim/vim.git
synced 2025-10-07 05:54:16 -04:00
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.
This commit is contained in:
@@ -2177,7 +2177,7 @@ swapfile_info(char_u *fname)
|
|||||||
/* EMX kill() not working correctly, it seems */
|
/* EMX kill() not working correctly, it seems */
|
||||||
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)"));
|
||||||
# if defined(FEAT_GUI_DIALOG) || defined(FEAT_CON_DIALOG)
|
# if defined(FEAT_GUI_DIALOG) || defined(FEAT_CON_DIALOG)
|
||||||
process_still_running = TRUE;
|
process_still_running = TRUE;
|
||||||
# endif
|
# endif
|
||||||
@@ -4089,7 +4089,11 @@ attention_message(
|
|||||||
MSG_PUTS(_("While opening file \""));
|
MSG_PUTS(_("While opening file \""));
|
||||||
msg_outtrans(buf->b_fname);
|
msg_outtrans(buf->b_fname);
|
||||||
MSG_PUTS("\"\n");
|
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: "));
|
MSG_PUTS(_(" dated: "));
|
||||||
x = st.st_mtime; /* Manx C can't do &st.st_mtime */
|
x = st.st_mtime; /* Manx C can't do &st.st_mtime */
|
||||||
|
@@ -792,6 +792,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
473,
|
||||||
/**/
|
/**/
|
||||||
472,
|
472,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user