From 00613ac8ba777998d284f57013157fff53155298 Mon Sep 17 00:00:00 2001 From: "P. F. Chimento" Date: Tue, 26 Apr 2011 23:30:03 +0200 Subject: [PATCH] Refinement of line terminators Handle line terminator key being pressed when cursor is in the middle of the input line --- libchimara/input.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libchimara/input.c b/libchimara/input.c index 6003f50..4036117 100644 --- a/libchimara/input.c +++ b/libchimara/input.c @@ -549,6 +549,7 @@ on_line_input_key_press_event(GtkWidget *widget, GdkEventKey *event, winid_t win GtkTextIter end; gtk_text_buffer_get_end_iter(buffer, &end); gtk_text_buffer_insert(buffer, &end, "\n", 1); + gtk_text_buffer_place_cursor(buffer, &end); /* Make the window uneditable again and retrieve the text that was input */ gtk_text_view_set_editable(GTK_TEXT_VIEW(win->widget), FALSE); -- 2.30.2