mirror of
https://github.com/neovim/neovim.git
synced 2025-09-21 02:38:19 +00: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:

committed by
Justin M. Keyes

parent
71ac92efc7
commit
6396beb432
@@ -1777,6 +1777,9 @@ void changed(void)
|
|||||||
if (curbuf->b_may_swap
|
if (curbuf->b_may_swap
|
||||||
&& !bt_dontwrite(curbuf)
|
&& !bt_dontwrite(curbuf)
|
||||||
) {
|
) {
|
||||||
|
int save_need_wait_return = need_wait_return;
|
||||||
|
|
||||||
|
need_wait_return = false;
|
||||||
ml_open_file(curbuf);
|
ml_open_file(curbuf);
|
||||||
|
|
||||||
/* The ml_open_file() can cause an ATTENTION message.
|
/* The ml_open_file() can cause an ATTENTION message.
|
||||||
@@ -1788,6 +1791,8 @@ void changed(void)
|
|||||||
os_delay(2000L, true);
|
os_delay(2000L, true);
|
||||||
wait_return(TRUE);
|
wait_return(TRUE);
|
||||||
msg_scroll = save_msg_scroll;
|
msg_scroll = save_msg_scroll;
|
||||||
|
} else {
|
||||||
|
need_wait_return = save_need_wait_return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
changed_int();
|
changed_int();
|
||||||
|
@@ -587,7 +587,7 @@ static int included_patches[] = {
|
|||||||
// 1094,
|
// 1094,
|
||||||
1093,
|
1093,
|
||||||
1092,
|
1092,
|
||||||
// 1091,
|
1091,
|
||||||
// 1090,
|
// 1090,
|
||||||
1089,
|
1089,
|
||||||
1088,
|
1088,
|
||||||
|
Reference in New Issue
Block a user