summaryrefslogtreecommitdiff
path: root/gtk/font_pango.c
diff options
context:
space:
mode:
Diffstat (limited to 'gtk/font_pango.c')
-rw-r--r--gtk/font_pango.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/font_pango.c b/gtk/font_pango.c
index f1b828daa..9589db6ff 100644
--- a/gtk/font_pango.c
+++ b/gtk/font_pango.c
@@ -105,7 +105,7 @@ bool nsfont_position_in_string(const struct css_style *style,
g_object_unref(context);
pango_font_description_free(desc);
- *char_offset = index;
+ *char_offset = index?index+1:0;
*actual_x = PANGO_PIXELS(pos.x);
return true;