1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-12 14:14:48 +02:00

Fixed crash when searching text in buffer with ctrl-R (bug #20938)

This commit is contained in:
Sebastien Helleu
2007-08-30 14:32:31 +00:00
parent 12fcca4c31
commit e05be4e2b3
2 changed files with 3 additions and 3 deletions
+2 -1
View File
@@ -1,10 +1,11 @@
WeeChat - Wee Enhanced Environment for Chat
===========================================
ChangeLog - 2007-08-29
ChangeLog - 2007-08-30
Version 0.2.6 (under dev!):
* fixed crash when searching text in buffer with ctrl-R (bug #20938)
* added string length limit for setup file options
* fixed bug with flock() when home is on NFS filesystem (bug #20913)
* added option to align text of messages (except first lines) (task #7246)
+1 -2
View File
@@ -721,7 +721,6 @@ gui_buffer_line_new (t_gui_buffer *buffer, time_t date)
buffer->lines = ptr_line;
ptr_line->prev_line = NULL;
buffer->num_lines--;
gui_chat_draw (buffer, 1);
}
return new_line;
@@ -737,7 +736,7 @@ gui_buffer_line_search (t_gui_line *line, char *text, int case_sensitive)
char *data;
int rc;
if (!text || !text[0])
if (!line || !line->data || !text || !text[0])
return 0;
rc = 0;