summaryrefslogtreecommitdiffstats
path: root/src/screen.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/screen.c')
-rw-r--r--src/screen.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/screen.c b/src/screen.c
index b5762145b7..c3bcd3b446 100644
--- a/src/screen.c
+++ b/src/screen.c
@@ -5197,7 +5197,8 @@ win_line(
/* XIM don't send preedit_start and preedit_end, but they send
* preedit_changed and commit. Thus Vim can't set "im_is_active", use
* im_is_preediting() here. */
- if (xic != NULL
+ if (p_imst == IM_ON_THE_SPOT
+ && xic != NULL
&& lnum == wp->w_cursor.lnum
&& (State & INSERT)
&& !p_imdisable