[geany/geany] 5dea35: Respect Smart Home Key setting in Go To Start of Display Line

Colomban Wendling git-noreply at xxxxx
Sun Oct 25 13:05:37 UTC 2015


Branch:      refs/heads/master
Author:      Colomban Wendling <ban at herbesfolles.org>
Committer:   Colomban Wendling <ban at herbesfolles.org>
Date:        Sun, 25 Oct 2015 13:05:37 UTC
Commit:      5dea35ada9afe202c5507fc35729a91d03175b9e
             https://github.com/geany/geany/commit/5dea35ada9afe202c5507fc35729a91d03175b9e

Log Message:
-----------
Respect Smart Home Key setting in Go To Start of Display Line


Modified Paths:
--------------
    src/keybindings.c

Modified: src/keybindings.c
2 lines changed, 1 insertions(+), 1 deletions(-)
===================================================================
@@ -2036,7 +2036,7 @@ static gboolean cb_func_goto_action(guint key_id)
 			sci_send_command(doc->editor->sci, SCI_LINEEND);
 			break;
 		case GEANY_KEYS_GOTO_LINESTARTVISUAL:
-			sci_send_command(doc->editor->sci, SCI_HOMEDISPLAY);
+			sci_send_command(doc->editor->sci, editor_prefs.smart_home_key ? SCI_VCHOMEDISPLAY : SCI_HOMEDISPLAY);
 			break;
 		case GEANY_KEYS_GOTO_LINEENDVISUAL:
 			sci_send_command(doc->editor->sci, SCI_LINEENDDISPLAY);



--------------
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