[vte] Revert "widget: Narrow the set of word chars"



commit e4bd699014e140e242af919b3b3a6f5aaf5f0385
Author: Christian Persch <chpe gnome org>
Date:   Wed Aug 13 14:00:58 2014 +0200

    Revert "widget: Narrow the set of word chars"
    
    This reverts commit 1b6cf784afab99aea861128f5e7bb5619288d6c1.

 src/vte.c |   12 +++---------
 1 files changed, 3 insertions(+), 9 deletions(-)
---
diff --git a/src/vte.c b/src/vte.c
index fb1eaee..a424c6f 100644
--- a/src/vte.c
+++ b/src/vte.c
@@ -5227,15 +5227,9 @@ vte_terminal_key_release(GtkWidget *widget, GdkEventKey *event)
 gboolean
 _vte_is_word_char(gunichar c)
 {
-       if (G_UNLIKELY (!g_unichar_isgraph(c)))
-               return FALSE;
-       if (G_LIKELY (g_unichar_isalnum(c)))
-               return TRUE;
-       if (G_UNLIKELY (g_unichar_type(c) == G_UNICODE_CONNECT_PUNCTUATION))  /* Pc */
-               return TRUE;
-       if (G_UNLIKELY (c == 0x00b7))  /* middle dot, requested in bug 700217 */
-               return TRUE;
-       return FALSE;
+       return g_unichar_isgraph(c) &&
+               (g_unichar_isalnum(c) ||
+                g_unichar_ispunct(c));
 }
 
 /* Check if the characters in the two given locations are in the same class


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]