summaryrefslogtreecommitdiff
path: root/src/gui_gtk_x11.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2015-09-08 20:00:22 +0200
committerBram Moolenaar <Bram@vim.org>2015-09-08 20:00:22 +0200
commit3cbe0c01ad71875bd662edb629f9e792a734f292 (patch)
treeb22088b5131151e038dbe253966750ead0ab1a5c /src/gui_gtk_x11.c
parenta122b5e98afe18c9cfdab31b77d2a9fbb8e36416 (diff)
downloadvim-git-3cbe0c01ad71875bd662edb629f9e792a734f292.tar.gz
patch 7.4.861v7.4.861
Problem: pango_shape_full() is not always available. Solution: Add a configure check.
Diffstat (limited to 'src/gui_gtk_x11.c')
-rw-r--r--src/gui_gtk_x11.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gui_gtk_x11.c b/src/gui_gtk_x11.c
index 5c4abce65..bcd05c43e 100644
--- a/src/gui_gtk_x11.c
+++ b/src/gui_gtk_x11.c
@@ -5063,8 +5063,13 @@ not_ascii:
* done, because drawing the cursor would change the display. */
item->analysis.shape_engine = default_shape_engine;
+#ifdef HAVE_PANGO_SHAPE_FULL
pango_shape_full((const char *)s + item->offset, item->length,
(const char *)s, len, &item->analysis, glyphs);
+#else
+ pango_shape((const char *)s + item->offset, item->length,
+ &item->analysis, glyphs);
+#endif
/*
* Fixed-width hack: iterate over the array and assign a fixed
* width to each glyph, thus overriding the choice made by the