[geany/geany] ed20a4: Make reflow paragraph leave cursor at end.
elextr
git-noreply at xxxxx
Wed Aug 6 03:15:07 UTC 2014
Branch: refs/heads/master
Author: elextr <elextr at gmail.com>
Committer: elextr <elextr at gmail.com>
Date: Wed, 06 Aug 2014 03:15:07 UTC
Commit: ed20a4373da28564be76028df6e137f0f2194d80
https://github.com/geany/geany/commit/ed20a4373da28564be76028df6e137f0f2194d80
Log Message:
-----------
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.
Modified Paths:
--------------
src/keybindings.c
Modified: src/keybindings.c
1 lines changed, 1 insertions(+), 0 deletions(-)
===================================================================
@@ -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);
}
--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).
More information about the Commits
mailing list