SF.net SVN: geany:[4867] trunk
ntrel at users.sourceforge.net
ntrel at xxxxx
Fri Apr 30 15:02:34 UTC 2010
Revision: 4867
http://geany.svn.sourceforge.net/geany/?rev=4867&view=rev
Author: ntrel
Date: 2010-04-30 15:02:33 +0000 (Fri, 30 Apr 2010)
Log Message:
-----------
Warn user if hidden hard tab width setting is not 8.
Modified Paths:
--------------
trunk/ChangeLog
trunk/src/editor.c
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2010-04-28 13:08:15 UTC (rev 4866)
+++ trunk/ChangeLog 2010-04-30 15:02:33 UTC (rev 4867)
@@ -1,3 +1,9 @@
+2010-04-30 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>
+
+ * src/editor.c:
+ Warn user if hidden hard tab width setting is not 8.
+
+
2010-04-28 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>
* src/interface.c, src/project.c, src/keyfile.c, geany.glade,
Modified: trunk/src/editor.c
===================================================================
--- trunk/src/editor.c 2010-04-28 13:08:15 UTC (rev 4866)
+++ trunk/src/editor.c 2010-04-30 15:02:33 UTC (rev 4867)
@@ -4567,9 +4567,20 @@
sci_set_use_tabs(sci, use_tabs);
if (type == GEANY_INDENT_TYPE_BOTH)
+ {
sci_set_tab_width(sci, iprefs->hard_tab_width);
+ if (iprefs->hard_tab_width != 8)
+ {
+ static gboolean warn = TRUE;
+ if (warn)
+ ui_set_statusbar(TRUE, _("Warning: non-standard hard tab width: %d != 8!"),
+ iprefs->hard_tab_width);
+ warn = FALSE;
+ }
+ }
else
sci_set_tab_width(sci, iprefs->width);
+
SSM(sci, SCI_SETINDENT, iprefs->width, 0);
/* remove indent spaces on backspace, if using any spaces to 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