SF.net SVN: geany: [1544] trunk/src/sci_cb.c
eht16 at users.sourceforge.net
eht16 at xxxxx
Fri May 18 11:54:13 UTC 2007
Revision: 1544
http://svn.sourceforge.net/geany/?rev=1544&view=rev
Author: eht16
Date: 2007-05-18 04:54:12 -0700 (Fri, 18 May 2007)
Log Message:
-----------
Renamed a local variable to avoid shadowing.
Modified Paths:
--------------
trunk/src/sci_cb.c
Modified: trunk/src/sci_cb.c
===================================================================
--- trunk/src/sci_cb.c 2007-05-18 11:50:33 UTC (rev 1543)
+++ trunk/src/sci_cb.c 2007-05-18 11:54:12 UTC (rev 1544)
@@ -593,14 +593,14 @@
if (sci_get_lexer(sci) == SCLEX_HTML || sci_get_lexer(sci) == SCLEX_TCL)
{ /* For TCL & PHP brace_match doesn't work here (maybe lexer bugs?),
* so this is a simple workaround. */
- gint indent = sci_get_line_indentation(sci, line);
+ gint line_indent = sci_get_line_indentation(sci, line);
gint last_indent = sci_get_line_indentation(sci, line - 1);
- if (indent < last_indent)
+ if (line_indent < last_indent)
return;
- indent -= app->pref_editor_tab_width;
- indent = MAX(0, indent);
- sci_set_line_indentation(sci, line, indent);
+ line_indent -= app->pref_editor_tab_width;
+ line_indent = MAX(0, line_indent);
+ sci_set_line_indentation(sci, line, line_indent);
}
}
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