Revision: 2975 http://geany.svn.sourceforge.net/geany/?rev=2975&view=rev Author: ntrel Date: 2008-09-19 16:30:04 +0000 (Fri, 19 Sep 2008)
Log Message: ----------- Disable indent guides for the Diff filetype, as they can be distracting as added/removed lines don't get them.
Modified Paths: -------------- trunk/ChangeLog trunk/src/sciwrappers.c
Modified: trunk/ChangeLog =================================================================== --- trunk/ChangeLog 2008-09-18 16:09:51 UTC (rev 2974) +++ trunk/ChangeLog 2008-09-19 16:30:04 UTC (rev 2975) @@ -1,3 +1,10 @@ +2008-09-19 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com> + + * src/sciwrappers.c: + Disable indent guides for the Diff filetype, as they can be + distracting as added/removed lines don't get them. + + 2008-09-18 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>
* src/ui_utils.c:
Modified: trunk/src/sciwrappers.c =================================================================== --- trunk/src/sciwrappers.c 2008-09-18 16:09:51 UTC (rev 2974) +++ trunk/src/sciwrappers.c 2008-09-19 16:30:04 UTC (rev 2975) @@ -712,6 +712,13 @@ { switch (lexer) { + /* Lines added/removed are prefixed with +/- characters, so + * those lines will not be shown with any indentation guides. + * It can be distracting that only a few of lines in a diff/patch + * file will show the guides. */ + case SCLEX_DIFF: + return SC_IV_NONE; + /* These languages use indentation for control blocks; the "look forward" method works * best here */ case SCLEX_PYTHON:
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.