SF.net SVN: geany-plugins:[1588] trunk/geany-plugins/geanygendoc/src/ggd.c
colombanw at users.sourceforge.net
colombanw at xxxxx
Fri Sep 17 17:50:45 UTC 2010
Revision: 1588
http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=1588&view=rev
Author: colombanw
Date: 2010-09-17 17:50:45 +0000 (Fri, 17 Sep 2010)
Log Message:
-----------
GeanyGenDoc: Fix documentation insertion position if indent pref is set
Don't insert documentation block at start-of-line + indent-width but at
start-of-line + n-indent-chars, which is different if tabs are used as
the indentation.
Modified Paths:
--------------
trunk/geany-plugins/geanygendoc/src/ggd.c
Modified: trunk/geany-plugins/geanygendoc/src/ggd.c
===================================================================
--- trunk/geany-plugins/geanygendoc/src/ggd.c 2010-09-14 20:52:44 UTC (rev 1587)
+++ trunk/geany-plugins/geanygendoc/src/ggd.c 2010-09-17 17:50:45 UTC (rev 1588)
@@ -350,7 +350,9 @@
line = adjust_start_line (sci, tag_array, tag, line);
pos = sci_get_position_from_line (sci, line);
if (GGD_OPT_indent) {
- pos += sci_get_line_indentation (sci, line);
+ while (isspace (sci_get_char_at (sci, pos))) {
+ pos++;
+ }
}
break;
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Plugins-Commits
mailing list