1
0
mirror of https://github.com/irssi/irssi.git synced 2024-09-29 04:45:57 -04:00

initialize prev_entry

git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3163 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2003-11-17 00:01:17 +00:00 committed by cras
parent 1121a3fcb7
commit add0bbda50

View File

@ -152,7 +152,7 @@ static void paste_send(void)
{
unichar *arr;
GString *str;
char out[10];
char out[10], *text;
unsigned int i;
int lf;
@ -175,8 +175,10 @@ static void paste_send(void)
return;
}
signal_emit("send text", 3, gui_entry_get_text(active_entry),
text = gui_entry_get_text(active_entry);
signal_emit("send text", 3, text,
active_win->active_server, active_win->active);
g_free(text);
/* rest of the lines */
str = g_string_new(NULL);
@ -877,6 +879,7 @@ void gui_readline_init(void)
escape_next_key = FALSE;
redir = NULL;
prev_entry = NULL;
paste_state = 0;
paste_entry = NULL;
paste_entry_pos = 0;