Mercurial > vim
comparison src/mbyte.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 | 1ff5e5dfa9b0 |
children | 2c020bc30f62 |
comparison
equal
deleted
inserted
replaced
12360:588b8fd2c045 | 12361:d3175a3bd8cd |
---|---|
4962 { | 4962 { |
4963 im_preedit_window_close(); | 4963 im_preedit_window_close(); |
4964 return; | 4964 return; |
4965 } | 4965 } |
4966 | 4966 |
4967 if (State & NORMAL) | 4967 if (State & NORMAL |
4968 #ifdef FEAT_TERMINAL | |
4969 && !term_use_loop() | |
4970 #endif | |
4971 ) | |
4968 { | 4972 { |
4969 im_preedit_cursor = 0; | 4973 im_preedit_cursor = 0; |
4970 return; | 4974 return; |
4971 } | 4975 } |
4972 for (; im_preedit_cursor > 0; --im_preedit_cursor) | 4976 for (; im_preedit_cursor > 0; --im_preedit_cursor) |