1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-04 16:53:14 +02:00

core: fix input length and crash after delete of line (closes #1989)

This commit is contained in:
Sébastien Helleu
2023-07-28 07:13:39 +02:00
parent 06fa5923e8
commit 63f9289769
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -31,6 +31,7 @@ New features::
Bug fixes::
* core: fix input length and crash after delete of line (issue #1989)
* core: fix cursor position after `/plugin list -i` or `/plugin list -il`
* core: display focus hashtable for debug even if no key is matching
* fset: remove extra spaces between min and max values when second format is used
+1 -1
View File
@@ -1142,7 +1142,7 @@ gui_input_delete_line (struct t_gui_buffer *buffer)
end_of_line = (char *)utf8_end_of_line (start);
size_deleted = end_of_line - beginning_of_line;
length_deleted = utf8_strnlen (start, size_deleted);
length_deleted = utf8_strnlen (beginning_of_line, size_deleted);
memmove (beginning_of_line, end_of_line, strlen (end_of_line));