mirror of
https://github.com/neovim/neovim.git
synced 2024-12-20 03:05:11 -07:00
vim-patch:7.4.1091 #4627
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.
b01f357791
This commit is contained in:
parent
71ac92efc7
commit
6396beb432
@ -1777,6 +1777,9 @@ void changed(void)
|
||||
if (curbuf->b_may_swap
|
||||
&& !bt_dontwrite(curbuf)
|
||||
) {
|
||||
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.
|
||||
@ -1788,6 +1791,8 @@ void changed(void)
|
||||
os_delay(2000L, true);
|
||||
wait_return(TRUE);
|
||||
msg_scroll = save_msg_scroll;
|
||||
} else {
|
||||
need_wait_return = save_need_wait_return;
|
||||
}
|
||||
}
|
||||
changed_int();
|
||||
|
@ -587,7 +587,7 @@ static int included_patches[] = {
|
||||
// 1094,
|
||||
1093,
|
||||
1092,
|
||||
// 1091,
|
||||
1091,
|
||||
// 1090,
|
||||
1089,
|
||||
1088,
|
||||
|
Loading…
Reference in New Issue
Block a user