ajwillia-ms pushed a commit to branch master.

http://git.enlightenment.org/tools/edi.git/commit/?id=a112dcad9e26a980f016e563a5ebfb37863779f3

commit a112dcad9e26a980f016e563a5ebfb37863779f3
Author: Andy Williams <a...@andywilliams.me>
Date:   Sat Dec 17 12:31:36 2016 +0000

    autosuggest: properly guard the clang variables
---
 src/bin/editor/edi_editor.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/bin/editor/edi_editor.c b/src/bin/editor/edi_editor.c
index 86c0536..72cb031 100644
--- a/src/bin/editor/edi_editor.c
+++ b/src/bin/editor/edi_editor.c
@@ -26,7 +26,9 @@ typedef struct
    Edi_Location end;
 } Edi_Range;
 
+#if HAVE_LIBCLANG
 static Evas_Object *_clang_autocomplete_popup_bg, 
*_clang_autocomplete_popup_genlist;
+#endif
 
 void
 edi_editor_save(Edi_Editor *editor)
@@ -915,8 +917,10 @@ _mouse_up_cb(void *data EINA_UNUSED, Evas *e EINA_UNUSED,
    widget = (Elm_Code_Widget *)data;
    event = (Evas_Event_Mouse_Up *)event_info;
 
+#if HAVE_LIBCLANG
    if (_clang_autocomplete_popup_bg)
      evas_object_hide(_clang_autocomplete_popup_bg);
+#endif
 
    ctrl = evas_key_modifier_is_set(event->modifiers, "Control");
    if (event->button != 3 || !ctrl)

-- 


Reply via email to