1
0
forked from aniani/vim

patch 7.4.1091

Problem:    When making a change while need_wait_return is set there is a two
            second delay.
Solution:   Do not assume the ATTENTION prompt was given when need_wait_return
            was set already.
This commit is contained in:
Bram Moolenaar
2016-01-15 15:17:04 +01:00
parent b5690794cf
commit b01f357791
2 changed files with 7 additions and 0 deletions

View File

@@ -2778,6 +2778,9 @@ changed()
#endif
)
{
int save_need_wait_return = need_wait_return;
need_wait_return = FALSE;
ml_open_file(curbuf);
/* The ml_open_file() can cause an ATTENTION message.
@@ -2791,6 +2794,8 @@ changed()
wait_return(TRUE);
msg_scroll = save_msg_scroll;
}
else
need_wait_return = save_need_wait_return;
}
changed_int();
}