From ed20a4373da28564be76028df6e137f0f2194d80 Mon Sep 17 00:00:00 2001 From: elextr Date: Wed, 6 Aug 2014 12:25:59 +1000 Subject: [PATCH] Make reflow paragraph leave cursor at end. The cursor was left at the beginning of the last line, leaving it at the end is more likely to be a useful position to continue typing. --- src/keybindings.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/keybindings.c b/src/keybindings.c index 63e95fca..88370753 100644 --- a/src/keybindings.c +++ b/src/keybindings.c @@ -2270,6 +2270,7 @@ static void reflow_paragraph(GeanyEditor *editor) reflow_lines(editor, column); if (!sel) sci_set_anchor(sci, -1); + sci_goto_pos(sci, sci_get_line_end_position(sci, sci_get_current_line(sci)), TRUE); sci_end_undo_action(sci); }