Fix double-click copy of a word at the end of a line

This commit is contained in:
BareMetal committed 2026-11-21 22:01:30 -07:00
1 parent 5952d8f5e2
commit faa26a3922
1 file changed
+2
+2
View File
@@ -2029,6 +2029,8 @@ gtk_xtext_get_word_select_range (GtkXText *xtext, int x, int y, textentry **ret_
while (end && end < ent->str + ent->str_len && gtk_xtext_word_select_char (end)) while (end && end < ent->str + ent->str_len && gtk_xtext_word_select_char (end))
end = g_utf8_find_next_char (end, ent->str + ent->str_len); end = g_utf8_find_next_char (end, ent->str + ent->str_len);
if (!end)
end = ent->str + ent->str_len;
if (ret_ent) if (ret_ent)
*ret_ent = ent; *ret_ent = ent;