SF.net SVN: geany: [2606] trunk
ntrel at users.sourceforge.net
ntrel at xxxxx
Wed May 21 14:08:41 UTC 2008
Revision: 2606
http://geany.svn.sourceforge.net/geany/?rev=2606&view=rev
Author: ntrel
Date: 2008-05-21 07:08:35 -0700 (Wed, 21 May 2008)
Log Message:
-----------
Rename editor_auto_line_indentation() to
editor_smart_line_indentation().
Modified Paths:
--------------
trunk/ChangeLog
trunk/src/editor.c
trunk/src/editor.h
trunk/src/keybindings.c
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2008-05-21 14:00:27 UTC (rev 2605)
+++ trunk/ChangeLog 2008-05-21 14:08:35 UTC (rev 2606)
@@ -2,10 +2,13 @@
* src/editor.c:
Refactor editor_auto_line_indentation().
- Make auto-line indentation set the cursor to the beginning of
+ Make Smart Line Indentation set the cursor to the beginning of
indentation for single line selections, so the user can fine-tune
indentation if necessary. For multiple line selections, select all
the lines after indenting.
+ * src/keybindings.c, src/editor.c, src/editor.h:
+ Rename editor_auto_line_indentation() to
+ editor_smart_line_indentation().
2008-05-19 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>
Modified: trunk/src/editor.c
===================================================================
--- trunk/src/editor.c 2008-05-21 14:00:27 UTC (rev 2605)
+++ trunk/src/editor.c 2008-05-21 14:08:35 UTC (rev 2606)
@@ -2672,7 +2672,7 @@
/* simple indentation to indent the current line with the same indent as the previous one */
-static void auto_line_indentation(gint idx, gint first_line, gint last_line)
+static void smart_line_indentation(gint idx, gint first_line, gint last_line)
{
gint i, sel_start = 0, sel_end = 0;
@@ -2697,7 +2697,7 @@
/* simple indentation to indent the current line with the same indent as the previous one */
-void editor_auto_line_indentation(gint idx, gint pos)
+void editor_smart_line_indentation(gint idx, gint pos)
{
gint first_line, last_line;
gint first_sel_start, first_sel_end;
@@ -2723,7 +2723,7 @@
get_indent(&doc_list[idx],
sci_get_position_from_line(doc_list[idx].sci, first_line - 1), TRUE);
- auto_line_indentation(idx, first_line, last_line);
+ smart_line_indentation(idx, first_line, last_line);
/* set cursor position if there was no selection */
if (first_sel_start == first_sel_end)
Modified: trunk/src/editor.h
===================================================================
--- trunk/src/editor.h 2008-05-21 14:00:27 UTC (rev 2605)
+++ trunk/src/editor.h 2008-05-21 14:08:35 UTC (rev 2606)
@@ -143,7 +143,7 @@
void editor_insert_alternative_whitespace(gint idx);
-void editor_auto_line_indentation(gint idx, gint pos);
+void editor_smart_line_indentation(gint idx, gint pos);
void editor_indentation_by_one_space(gint idx, gint pos, gboolean decrease);
Modified: trunk/src/keybindings.c
===================================================================
--- trunk/src/keybindings.c 2008-05-21 14:00:27 UTC (rev 2605)
+++ trunk/src/keybindings.c 2008-05-21 14:08:35 UTC (rev 2606)
@@ -1497,7 +1497,7 @@
editor_indentation_by_one_space(idx, -1, TRUE);
break;
case GEANY_KEYS_FORMAT_AUTOINDENT:
- editor_auto_line_indentation(idx, -1);
+ editor_smart_line_indentation(idx, -1);
break;
case GEANY_KEYS_FORMAT_TOGGLECASE:
on_toggle_case1_activate(NULL, NULL);
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