comparison src/getchar.c @ 12361:d3175a3bd8cd v8.0.1060

patch 8.0.1060: when imstyle is one, mapping <Left> breaks preediting commit https://github.com/vim/vim/commit/3971905bac0fe7e7519b35b1e558b4f1de55708d Author: Bram Moolenaar <Bram@vim.org> Date: Tue Sep 5 22:20:46 2017 +0200 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)
author Christian Brabandt <cb@256bit.org>
date Tue, 05 Sep 2017 22:30:04 +0200
parents 2738b0cc5f64
children dfb8254aa735
comparison
equal deleted inserted replaced
12360:588b8fd2c045 12361:d3175a3bd8cd
1596 last_recorded_len = 0; 1596 last_recorded_len = 0;
1597 for (;;) /* this is done twice if there are modifiers */ 1597 for (;;) /* this is done twice if there are modifiers */
1598 { 1598 {
1599 int did_inc = FALSE; 1599 int did_inc = FALSE;
1600 1600
1601 if (mod_mask) /* no mapping after modifier has been read */ 1601 if (mod_mask
1602 { 1602 #if defined(FEAT_XIM) && defined(FEAT_GUI_GTK)
1603 || im_is_preediting()
1604 #endif
1605 )
1606 {
1607 /* no mapping after modifier has been read */
1603 ++no_mapping; 1608 ++no_mapping;
1604 ++allow_keys; 1609 ++allow_keys;
1605 did_inc = TRUE; /* mod_mask may change value */ 1610 did_inc = TRUE; /* mod_mask may change value */
1606 } 1611 }
1607 c = vgetorpeek(TRUE); 1612 c = vgetorpeek(TRUE);