mirror of
https://github.com/ZoiteChat/zoitechat.git
synced 2026-12-05 14:31:49 +00:00
Fix double-click copy of a word at the end of a line
This commit is contained in:
1 parent
5952d8f5e2
commit
faa26a3922
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