summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2007-08-30 14:32:31 +0000
committerSebastien Helleu <flashcode@flashtux.org>2007-08-30 14:32:31 +0000
commite05be4e2b3efbfe206468abbcb0fc328bacac3f8 (patch)
tree28fc5c4054eb93d654ab9145aca2b524168a0f68 /src/gui
parent12fcca4c315f5fb6cb6224befb854127a07a789c (diff)
downloadweechat-e05be4e2b3efbfe206468abbcb0fc328bacac3f8.zip
Fixed crash when searching text in buffer with ctrl-R (bug #20938)
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/gui-buffer.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gui/gui-buffer.c b/src/gui/gui-buffer.c
index 04e16ad18..7f0a181f5 100644
--- a/src/gui/gui-buffer.c
+++ b/src/gui/gui-buffer.c
@@ -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;