From: P. F. Chimento Date: Tue, 26 Apr 2011 21:30:03 +0000 (+0200) Subject: Refinement of line terminators X-Git-Tag: v0.9~89^2 X-Git-Url: https://git.stderr.nl/gitweb?p=projects%2Fchimara%2Fchimara.git;a=commitdiff_plain;h=00613ac8ba777998d284f57013157fff53155298 Refinement of line terminators Handle line terminator key being pressed when cursor is in the middle of the input line --- 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);