diff options
author | zeertzjq <zeertzjq@outlook.com> | 2023-03-02 17:51:32 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2023-03-02 17:51:32 +0000 |
commit | 440d4cb55b84fd4b188630abc4a1312598649af0 (patch) | |
tree | 19a7efd9ba5bb5da6ddf2097a757bab8500852f8 /src/insexpand.c | |
parent | c3f971f28989fde7d94b45957496fecd6e6f2177 (diff) |
patch 9.0.1371: ballooneval interferes with Insert completionv9.0.1371
Problem: Ballooneval interferes with Insert completion.
Solution: Ignore mouse-move events when completing. (closes #12094,
closes #12092)
Diffstat (limited to 'src/insexpand.c')
-rw-r--r-- | src/insexpand.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/insexpand.c b/src/insexpand.c index 1362781ec3..2737f2b51f 100644 --- a/src/insexpand.c +++ b/src/insexpand.c @@ -2333,9 +2333,9 @@ ins_compl_prep(int c) if (c != Ctrl_R && vim_is_ctrl_x_key(c)) edit_submode_extra = NULL; - // Ignore end of Select mode mapping and mouse scroll buttons. + // Ignore end of Select mode mapping and mouse scroll/movement. if (c == K_SELECT || c == K_MOUSEDOWN || c == K_MOUSEUP - || c == K_MOUSELEFT || c == K_MOUSERIGHT + || c == K_MOUSELEFT || c == K_MOUSERIGHT || c == K_MOUSEMOVE || c == K_COMMAND || c == K_SCRIPT_COMMAND) return retval; @@ -3491,7 +3491,7 @@ get_next_spell_completion(linenr_T lnum UNUSED) * "cur_match_pos" for completion. The length of the match is set in "len". */ static char_u * -ins_comp_get_next_word_or_line( +ins_compl_get_next_word_or_line( buf_T *ins_buf, // buffer being scanned pos_T *cur_match_pos, // current match position int *match_len, @@ -3675,8 +3675,8 @@ get_next_default_completion(ins_compl_next_state_T *st, pos_T *start_pos) && start_pos->col == st->cur_match_pos->col) continue; - ptr = ins_comp_get_next_word_or_line(st->ins_buf, st->cur_match_pos, - &len, &cont_s_ipos); + ptr = ins_compl_get_next_word_or_line(st->ins_buf, st->cur_match_pos, + &len, &cont_s_ipos); if (ptr == NULL) continue; |