Skip ;,: as vte does not consider these a word.
This commit is contained in:
parent
7930760a6a
commit
f2a1aa91cc
|
@ -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