Merge pull request #429 from jelly/fix_is_word_char
Skip ;,: as vte does not consider these a word.
This commit is contained in:
commit
7ff1bd5ec0
|
@ -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)));
|
||||
|
|
Loading…
Reference in New Issue