Skip ;,: as vte does not consider these a word.

This commit is contained in:
Jelle van der Waa 2016-12-04 20:38:33 +01:00
parent 7930760a6a
commit f2a1aa91cc
1 changed files with 1 additions and 1 deletions

View File

@ -560,7 +560,7 @@ get_text_range(VteTerminal *vte, long start_row, long start_col, long end_row, l
}
static bool is_word_char(gunichar c) {
static const char *word_char_ascii_punct = "-,.;/?%&#:_=+@~";
static const char *word_char_ascii_punct = "-,./?%&#_=+@~";
return g_unichar_isgraph(c) &&
(g_unichar_isalnum(c) || (g_unichar_ispunct(c) &&
(c >= 0x80 || strchr(word_char_ascii_punct, (int)c) != NULL)));