Merge pull request #472 from B4reMetal/fix-dblclick-copy

Fix double-click copy of a word at the end of a line
This commit is contained in:
deepend-tildeclub authored and GitHub committed 2026-12-05 03:43:12 -06:00
commit 5fb27b8732
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))
end = g_utf8_find_next_char (end, ent->str + ent->str_len);
if (!end)
end = ent->str + ent->str_len;
if (ret_ent)
*ret_ent = ent;