mirror of
https://github.com/irssi/irssi.git
synced 2026-08-08 19:30:15 +02:00
don't crash if trying to erase 0 chars and there's no cutbuffer.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2456 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
fa94c72774
commit
de272071c5
1 changed files with 1 additions and 1 deletions
|
|
@ -337,7 +337,7 @@ void gui_entry_erase(GUI_ENTRY_REC *entry, int size)
|
|||
{
|
||||
g_return_if_fail(entry != NULL);
|
||||
|
||||
if (entry->pos < size)
|
||||
if (entry->pos < size || size == 0)
|
||||
return;
|
||||
|
||||
/* put erased text to cutbuffer */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue