mirror of
https://github.com/irssi/irssi.git
synced 2024-12-04 14:46:39 -05: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:
parent
1121a3fcb7
commit
add0bbda50
@ -152,7 +152,7 @@ static void paste_send(void)
|
|||||||
{
|
{
|
||||||
unichar *arr;
|
unichar *arr;
|
||||||
GString *str;
|
GString *str;
|
||||||
char out[10];
|
char out[10], *text;
|
||||||
unsigned int i;
|
unsigned int i;
|
||||||
int lf;
|
int lf;
|
||||||
|
|
||||||
@ -175,8 +175,10 @@ static void paste_send(void)
|
|||||||
return;
|
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);
|
active_win->active_server, active_win->active);
|
||||||
|
g_free(text);
|
||||||
|
|
||||||
/* rest of the lines */
|
/* rest of the lines */
|
||||||
str = g_string_new(NULL);
|
str = g_string_new(NULL);
|
||||||
@ -877,10 +879,11 @@ void gui_readline_init(void)
|
|||||||
|
|
||||||
escape_next_key = FALSE;
|
escape_next_key = FALSE;
|
||||||
redir = NULL;
|
redir = NULL;
|
||||||
|
prev_entry = NULL;
|
||||||
paste_state = 0;
|
paste_state = 0;
|
||||||
paste_entry = NULL;
|
paste_entry = NULL;
|
||||||
paste_entry_pos = 0;
|
paste_entry_pos = 0;
|
||||||
paste_buffer = g_array_new(FALSE, FALSE, sizeof(unichar));
|
paste_buffer = g_array_new(FALSE, FALSE, sizeof(unichar));
|
||||||
g_get_current_time(&last_keypress);
|
g_get_current_time(&last_keypress);
|
||||||
input_listen_init(STDIN_FILENO);
|
input_listen_init(STDIN_FILENO);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user