0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

patch 8.0.1060: when imstyle is one, mapping <Left> breaks preediting

Problem:    When imstyle is one, mapping <Left> breaks preediting.
Solution:   Pass though preediting key-events. (Yasuhiro Matsumoto, closes
            #2064, closes #2063)
This commit is contained in:
Bram Moolenaar
2017-09-05 22:20:46 +02:00
parent 3d8d2c7ca5
commit 3971905bac
3 changed files with 13 additions and 2 deletions

View File

@@ -1598,8 +1598,13 @@ vgetc(void)
{
int did_inc = FALSE;
if (mod_mask) /* no mapping after modifier has been read */
if (mod_mask
#if defined(FEAT_XIM) && defined(FEAT_GUI_GTK)
|| im_is_preediting()
#endif
)
{
/* no mapping after modifier has been read */
++no_mapping;
++allow_keys;
did_inc = TRUE; /* mod_mask may change value */