[vte] widget: Adjust default set of word characters
- From: Christian Persch <chpe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vte] widget: Adjust default set of word characters
- Date: Mon, 16 Mar 2015 17:21:54 +0000 (UTC)
commit a5fb88c896024d137228fe2089deace4c8f2e6cb
Author: Christian Persch <chpe gnome org>
Date: Thu Mar 12 19:28:52 2015 +0100
widget: Adjust default set of word characters
https://bugzilla.gnome.org/show_bug.cgi?id=730632
src/vte.c | 15 ++++++---------
1 files changed, 6 insertions(+), 9 deletions(-)
---
diff --git a/src/vte.c b/src/vte.c
index e08b2d8..22a369e 100644
--- a/src/vte.c
+++ b/src/vte.c
@@ -82,7 +82,7 @@ typedef gunichar wint_t;
#define howmany(x, y) (((x) + ((y) - 1)) / (y))
#endif
-#define WORD_CHAR_EXCEPTIONS_DEFAULT "-#%&+,./:;=? \\_~\302\267"
+#define WORD_CHAR_EXCEPTIONS_DEFAULT "-#%&+,./=? \\_~\302\267"
static int _vte_unichar_width(gunichar c, int utf8_ambiguous_width);
static void vte_terminal_set_visibility (VteTerminal *terminal, GdkVisibilityState state);
@@ -5297,19 +5297,16 @@ _vte_terminal_is_word_char(VteTerminal *terminal,
gunichar c)
{
const guint8 v = word_char_by_category[g_unichar_type(c)];
- gunichar *u;
if (v)
return v == 1;
/* Do we have an exception? */
- u = bsearch(&c,
- terminal->pvt->word_char_exceptions,
- terminal->pvt->word_char_exceptions_len,
- sizeof(gunichar),
- compare_unichar_p);
-
- return u != NULL;
+ return bsearch(&c,
+ terminal->pvt->word_char_exceptions,
+ terminal->pvt->word_char_exceptions_len,
+ sizeof(gunichar),
+ compare_unichar_p) != NULL;
}
/* 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]