mirror of
https://github.com/neovim/neovim.git
synced 2026-07-13 12:50:31 +00:00
fixup! vim-patch:8.0.1449: slow redrawing with DirectX
This commit is contained in:
@@ -3150,9 +3150,7 @@ static void ins_compl_clear(void)
|
||||
XFREE_CLEAR(compl_orig_text);
|
||||
compl_enter_selects = false;
|
||||
// clear v:completed_item
|
||||
dict_T *const d = tv_dict_alloc();
|
||||
d->dv_lock = VAR_FIXED;
|
||||
set_vim_var_dict(VV_COMPLETED_ITEM, d);
|
||||
set_vim_var_dict(VV_COMPLETED_ITEM, tv_dict_alloc_lock(VAR_FIXED));
|
||||
}
|
||||
|
||||
/// Check that Insert completion is active.
|
||||
@@ -4497,9 +4495,7 @@ static void ins_compl_delete(void)
|
||||
// causes flicker, thus we can't do that.
|
||||
changed_cline_bef_curs();
|
||||
// clear v:completed_item
|
||||
dict_T *const d = tv_dict_alloc();
|
||||
d->dv_lock = VAR_FIXED;
|
||||
set_vim_var_dict(VV_COMPLETED_ITEM, d);
|
||||
set_vim_var_dict(VV_COMPLETED_ITEM, tv_dict_alloc_lock(VAR_FIXED));
|
||||
}
|
||||
|
||||
// Insert the new text being completed.
|
||||
@@ -4520,8 +4516,7 @@ static void ins_compl_insert(int in_compl_func)
|
||||
static dict_T *ins_compl_dict_alloc(compl_T *match)
|
||||
{
|
||||
// { word, abbr, menu, kind, info }
|
||||
dict_T *dict = tv_dict_alloc();
|
||||
dict->dv_lock = VAR_FIXED;
|
||||
dict_T *dict = tv_dict_alloc_lock(VAR_FIXED);
|
||||
tv_dict_add_str(
|
||||
dict, S_LEN("word"),
|
||||
(const char *)EMPTY_IF_NULL(match->cp_str));
|
||||
|
||||
Reference in New Issue
Block a user