[geany/geany-plugins] dc0af5: shiftcolumn: Fix shifting when the selection was created backwards
Colomban Wendling
git-noreply at xxxxx
Thu Jun 9 13:22:23 UTC 2016
Branch: refs/heads/master
Author: Colomban Wendling <ban at herbesfolles.org>
Committer: Colomban Wendling <ban at herbesfolles.org>
Date: Sat, 20 Feb 2016 20:50:00 UTC
Commit: dc0af51b96d4b98ada550d464b0cd17b24268419
https://github.com/geany/geany-plugins/commit/dc0af51b96d4b98ada550d464b0cd17b24268419
Log Message:
-----------
shiftcolumn: Fix shifting when the selection was created backwards
Modified Paths:
--------------
shiftcolumn/src/shiftcolumn.c
Modified: shiftcolumn/src/shiftcolumn.c
2 lines changed, 2 insertions(+), 0 deletions(-)
===================================================================
@@ -123,6 +123,7 @@ static void shift_left_cb(G_GNUC_UNUSED GtkMenuItem *menuitem,
/* put the new text in */
sci_set_selection_start(sci, startpos - 1);
+ sci_set_selection_end(sci, endpos);
sci_replace_sel(sci, txt);
/* select the right bit again */
@@ -261,6 +262,7 @@ static void shift_right_cb(G_GNUC_UNUSED GtkMenuItem *menuitem,
sci_start_undo_action(sci);
/* put the new text in */
+ sci_set_selection_start(sci, startpos);
sci_set_selection_end(sci, endpos + 1);
sci_replace_sel(sci, txt);
--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).
More information about the Plugins-Commits
mailing list