mirror of
https://github.com/neovim/neovim.git
synced 2025-10-03 08:28:34 +00:00
vim-patch:8.2.0152: restoring ctrl_x_mode is not needed
Problem: Restoring ctrl_x_mode is not needed.
Solution: Remove restoring the old value, it's changed again soon.
da812e282a
This commit is contained in:
@@ -3594,17 +3594,12 @@ static bool ins_compl_prep(int c)
|
|||||||
|
|
||||||
auto_format(FALSE, TRUE);
|
auto_format(FALSE, TRUE);
|
||||||
|
|
||||||
{
|
// Trigger the CompleteDone event to give scripts a chance to
|
||||||
const int new_mode = ctrl_x_mode;
|
// act upon the completion. Do this before clearing the info,
|
||||||
|
// and restore ctrl_x_mode, so that complete_info() can be
|
||||||
// Trigger the CompleteDone event to give scripts a chance to
|
// used.
|
||||||
// act upon the completion. Do this before clearing the info,
|
ctrl_x_mode = prev_mode;
|
||||||
// and restore ctrl_x_mode, so that complete_info() can be
|
ins_apply_autocmds(EVENT_COMPLETEDONE);
|
||||||
// used.
|
|
||||||
ctrl_x_mode = prev_mode;
|
|
||||||
ins_apply_autocmds(EVENT_COMPLETEDONE);
|
|
||||||
ctrl_x_mode = new_mode;
|
|
||||||
}
|
|
||||||
|
|
||||||
ins_compl_free();
|
ins_compl_free();
|
||||||
compl_started = false;
|
compl_started = false;
|
||||||
|
Reference in New Issue
Block a user