Revision: 4404 http://geany.svn.sourceforge.net/geany/?rev=4404&view=rev Author: ntrel Date: 2009-11-05 18:11:10 +0000 (Thu, 05 Nov 2009)
Log Message: ----------- Fix moving correct lines after selecting whole line(s).
Modified Paths: -------------- trunk/ChangeLog trunk/src/keybindings.c
Modified: trunk/ChangeLog =================================================================== --- trunk/ChangeLog 2009-11-05 18:03:34 UTC (rev 4403) +++ trunk/ChangeLog 2009-11-05 18:11:10 UTC (rev 4404) @@ -7,6 +7,8 @@ Show number of files saved on status bar when using Save All. * src/highlighting.c: Use default color scheme if pref color scheme file doesn't exist. + * src/keybindings.c: + Fix moving correct lines after selecting whole line(s).
2009-11-04 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>
Modified: trunk/src/keybindings.c =================================================================== --- trunk/src/keybindings.c 2009-11-05 18:03:34 UTC (rev 4403) +++ trunk/src/keybindings.c 2009-11-05 18:11:10 UTC (rev 4404) @@ -1994,7 +1994,7 @@ gint pos, line, len;
sci_start_undo_action(sci); - editor_select_lines(editor, TRUE); + editor_select_lines(editor, FALSE); len = sci_get_selected_text_length(sci);
pos = sci_get_selection_start(sci); @@ -2012,7 +2012,7 @@ g_free(text);
sci_set_current_position(sci, pos, TRUE); - sci_set_selection_end(sci, pos + len - 2); + sci_set_selection_end(sci, pos + len - 1);
sci_end_undo_action(sci); }
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.