From acc013a05307bd4c5a45a63cd9ea7a203ba731db Mon Sep 17 00:00:00 2001 From: Ali Gholami Rudi Date: Fri, 16 Mar 2018 01:12:28 +0330 Subject: [PATCH] wb: insert keshideh after the last possible character --- wb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wb.c b/wb.c index 670ecc1..f141633 100644 --- a/wb.c +++ b/wb.c @@ -595,7 +595,7 @@ int wb_keshideh(char *word, struct wb *dst, int wid) s = word; while ((c = escread(&s, &d)) >= 0) { wb_putc(dst, c, d); - if (!c && strcmp("ـ", d) && keshideh(p)) { + if (!c && keshideh(p)) { struct glyph *g = dev_glyph("ـ", R_F(dst)); int kw = g ? font_gwid(g->font, dev_font(R_F(dst)), R_S(dst), g->wid) : 0; @@ -613,7 +613,7 @@ int wb_keshideh(char *word, struct wb *dst, int wid) while ((c = escread(&s, &d)) >= 0) { wb_putc(dst, c, d); if (s == s_kesh) - wb_putc(dst, 0, "ـ"); + wb_putc(dst, 0, "ـ"); } return ins; } -- 2.11.4.GIT