mirror of
https://github.com/ZoiteChat/zoitechat.git
synced 2026-12-06 15:01:49 +00:00
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:
1 file changed
+2
@@ -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;
|
||||||
|
|||||||
Reference in new issue
Block a user