win->input_request_type = INPUT_REQUEST_LINE;
win->line_input_buffer = buf;
win->line_input_buffer_max_len = maxlen;
+ win->echo_current_line_input = win->echo_line_input;
gchar *inserttext = (initlen > 0)? g_strndup(buf, initlen) : g_strdup("");
switch(win->type)
gchar *inserted_text = gtk_text_buffer_get_text(window_buffer, &start_iter, &end_iter, FALSE);
/* If echoing is turned off, remove the text from the window */
- if(!win->echo_line_input)
+ if(!win->echo_current_line_input)
gtk_text_buffer_delete(window_buffer, &start_iter, &end_iter);
/* Don't include the newline in the input */
gtk_text_view_set_editable(GTK_TEXT_VIEW(win->widget), FALSE);
/* Insert the forced input into the window */
- if(win->echo_line_input)
+ if(win->echo_current_line_input)
{
gtk_text_buffer_get_end_iter(buffer, &end);
gchar *text_to_insert = g_strconcat(text, "\n", NULL);
win->line_input_buffer_unicode = NULL;
win->history = NULL;
win->echo_line_input = TRUE;
+ win->echo_current_line_input = TRUE;
/* Initialise the buffer */
win->buffer = g_string_sized_new(1024);
gboolean mouse_input_requested;
GList *history;
GList *history_pos;
+ /* Line input echoing (text buffers only) */
gboolean echo_line_input;
+ gboolean echo_current_line_input;
/* Line input field (text grids only) */
glui32 input_length;
GtkTextChildAnchor *input_anchor;