From e1becf7eb066a3158ba83e6f5701b3f8b3ae29b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Enrico=20Tr=C3=83=C2=B6ger?= <enrico@xfce.org> Date: Wed, 29 Oct 2008 22:39:39 +0000 Subject: [PATCH] When highlighting cross-references, ignore also {vt} and {pl}. (Old svn revision: 5870) --- ChangeLog | 1 + lib/dictd.c | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index f36d4c6..7c56619 100644 --- a/ChangeLog +++ b/ChangeLog @@ -4,6 +4,7 @@ even if an empty or invalid spell check command was given. * Add a combo box around the search field in the main window to provide a history of previously searched words. + * When highlighting cross-references, ignore also {vt} and {pl}. 2008-10-28 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de> diff --git a/lib/dictd.c b/lib/dictd.c index 81344bd..8d6a780 100644 --- a/lib/dictd.c +++ b/lib/dictd.c @@ -186,7 +186,9 @@ static gboolean ignore_short_link(const gchar *str) /* ignore {n}, {f}, {m} (surrounding braces are already stripped in 'str') */ if (strcmp("f", str) == 0 || strcmp("m", str) == 0 || - strcmp("n", str) == 0) + strcmp("n", str) == 0 || + strcmp("vt", str) == 0 || + strcmp("pl", str) == 0) { return TRUE; } -- GitLab