diff src/ex_getln.c @ 12293:1ff5e5dfa9b0 v8.0.1026

patch 8.0.1026: GTK on-the-spot input has problems commit https://github.com/vim/vim/commit/5c6dbcb03fa552d7b0e61c8fcf425147eb6bf7d5 Author: Bram Moolenaar <Bram@vim.org> Date: Wed Aug 30 22:00:20 2017 +0200 patch 8.0.1026: GTK on-the-spot input has problems Problem: GTK on-the-spot input has problems. (Gerd Wachsmuth) Solution: Support over-the-spot. (Yukihiro Nakadaira, Ketn Takata, closes #1215)
author Christian Brabandt <cb@256bit.org>
date Wed, 30 Aug 2017 22:15:04 +0200
parents 7df3dd3c0ac1
children 68d7bc045dbe
line wrap: on
line diff
--- a/src/ex_getln.c
+++ b/src/ex_getln.c
@@ -3468,7 +3468,8 @@ cursorcmd(void)
 
     windgoto(msg_row, msg_col);
 #if defined(FEAT_XIM) && defined(FEAT_GUI_GTK)
-    redrawcmd_preedit();
+    if (p_imst == IM_ON_THE_SPOT)
+	redrawcmd_preedit();
 #endif
 #ifdef MCH_CURSOR_SHAPE
     mch_update_cursor();