Merge pull request #429 from jelly/fix_is_word_char

Skip ;,: as vte does not consider these a word.
This commit is contained in:
jelle van der Waa 2016-12-04 20:47:57 +01:00 committed by GitHub
commit 7ff1bd5ec0
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)));