Skip to content

Instantly share code, notes, and snippets.

@luchr
Created September 8, 2015 11:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save luchr/42fb32ae0410dfd166cc to your computer and use it in GitHub Desktop.
Save luchr/42fb32ae0410dfd166cc to your computer and use it in GitHub Desktop.
--- vim74/src/gui_gtk_x11.c.orig 2015-09-07 16:19:44.054802201 +0200
+++ vim74/src/gui_gtk_x11.c 2015-09-07 16:20:05.803460620 +0200
@@ -5063,8 +5063,8 @@
* done, because drawing the cursor would change the display. */
item->analysis.shape_engine = default_shape_engine;
- pango_shape((const char *)s + item->offset, item->length,
- &item->analysis, glyphs);
+ pango_shape_full((const char *)s + item->offset, item->length,
+ (const char *)s, len, &item->analysis, glyphs);
/*
* Fixed-width hack: iterate over the array and assign a fixed
* width to each glyph, thus overriding the choice made by the
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment