SF.net SVN: geany:[5350] trunk
ntrel at users.sourceforge.net
ntrel at xxxxx
Mon Nov 1 16:16:20 UTC 2010
Revision: 5350
http://geany.svn.sourceforge.net/geany/?rev=5350&view=rev
Author: ntrel
Date: 2010-11-01 16:16:20 +0000 (Mon, 01 Nov 2010)
Log Message:
-----------
Respect 'Smart' home key for Shift+Home (fixes #3100290).
Modified Paths:
--------------
trunk/ChangeLog
trunk/src/editor.c
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2010-11-01 15:18:32 UTC (rev 5349)
+++ trunk/ChangeLog 2010-11-01 16:16:20 UTC (rev 5350)
@@ -6,6 +6,8 @@
* src/filetypes.c:
Detect user and system filetype configuration files as Conf
filetype.
+ * src/editor.c:
+ Respect 'Smart' home key for Shift+Home (fixes #3100290).
2010-11-01 Frank Lanitz <frank(at)frank(dot)uvena(dot)de>
Modified: trunk/src/editor.c
===================================================================
--- trunk/src/editor.c 2010-11-01 15:18:32 UTC (rev 5349)
+++ trunk/src/editor.c 2010-11-01 16:16:20 UTC (rev 5350)
@@ -5093,6 +5093,9 @@
editor_set_indent(editor, editor->indent_type, editor->indent_width);
sci_set_tab_indents(sci, editor_prefs.use_tab_to_indent);
+ sci_assign_cmdkey(sci, SCK_HOME | (SCMOD_SHIFT << 16),
+ editor_prefs.smart_home_key ? SCI_VCHOMEEXTEND : SCI_HOMEEXTEND);
+
sci_set_autoc_max_height(sci, editor_prefs.symbolcompletion_max_height);
SSM(sci, SCI_AUTOCSETDROPRESTOFWORD, editor_prefs.completion_drops_rest_of_word, 0);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Commits
mailing list