mirror of
https://github.com/irssi/irssi.git
synced 2026-08-09 11:50:10 +02: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
1 changed files with 3 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue