mirror of
https://github.com/irssi/irssi.git
synced 2024-12-04 14:46:39 -05:00
textbuffer_insert() didn't work properly when trying to add empty string.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2026 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
fee2ad09c9
commit
e54a819104
@ -277,6 +277,9 @@ LINE_REC *textbuffer_insert(TEXT_BUFFER_REC *buffer, LINE_REC *insert_after,
|
||||
g_return_val_if_fail(buffer != NULL, NULL);
|
||||
g_return_val_if_fail(data != NULL, NULL);
|
||||
|
||||
if (len == 0)
|
||||
return insert_after;
|
||||
|
||||
line = !buffer->last_eol ? insert_after :
|
||||
textbuffer_line_insert(buffer, insert_after);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user