]> granicus.if.org Git - vim/commitdiff
patch 8.1.1647: build error with GTK and hangulinput feature v8.1.1647
authorBram Moolenaar <Bram@vim.org>
Sun, 7 Jul 2019 17:16:58 +0000 (19:16 +0200)
committerBram Moolenaar <Bram@vim.org>
Sun, 7 Jul 2019 17:16:58 +0000 (19:16 +0200)
Problem:    Build error with GTK and hangulinput feature, im_get_status()
            defined twice. (Dominique Pelle)
Solution:   Adjust im_get_status(). (closes #4628)

src/hangulin.c
src/mbyte.c
src/version.c

index e08fe6317a8d10cc4482c56feb3b9e547bb7c0c3..337ea84f4c3836c279e06b2c20fd122a545fdb35 100644 (file)
@@ -404,11 +404,13 @@ hangul_input_state_set(int state)
     hangul_input_clear();
 }
 
+#if (!defined(FEAT_XIM) && !defined(FEAT_GUI_GTK)) || defined(PROTO)
     int
 im_get_status(void)
 {
     return hangul_input_state_get();
 }
+#endif
 
     void
 hangul_input_state_toggle(void)
index 9c03f08d8255866bed8516d495a336943fb3bc07..94adddf7ef9b27632f643c35bfe0f89ca4e860c1 100644 (file)
@@ -5848,6 +5848,11 @@ xim_queue_key_press_event(GdkEventKey *event, int down)
     int
 im_get_status(void)
 {
+#  ifdef FEAT_HANGULIN
+    if (hangul_input_state_get())
+       return TRUE;
+#  endif
+
 #  ifdef FEAT_EVAL
     if (USE_IMSTATUSFUNC)
        return call_imstatusfunc();
index 52bce3b683a80997770783782e38529e933d3d87..5cf7da3356a009c7d0b0171acd0b58f977d3d1d4 100644 (file)
@@ -777,6 +777,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1647,
 /**/
     1646,
 /**/