[geany/geany] 7193a1: Minor style changes from last commit
Matthew Brush
git-noreply at xxxxx
Sat Aug 11 01:19:54 UTC 2012
Branch: refs/heads/master
Author: Matthew Brush <matt at geany.org>
Committer: Matthew Brush <matt at geany.org>
Date: Sat, 11 Aug 2012 01:19:54
Commit: 7193a1161b0078dedea3dd588910daaf8b1f5dc7
https://github.com/geany/geany/commit/7193a1161b0078dedea3dd588910daaf8b1f5dc7
Log Message:
-----------
Minor style changes from last commit
Modified Paths:
--------------
src/editor.c
Modified: src/editor.c
11 files changed, 2 insertions(+), 9 deletions(-)
===================================================================
@@ -1401,16 +1401,9 @@ static gint get_indent_size_after_line(GeanyEditor *editor, gint line)
gint additional_indent = 0;
if (lexer_has_braces(sci))
- {
additional_indent = iprefs->width * get_brace_indent(sci, line);
- }
- else
- {
- /* Instead of testing the filetype directly, test for the lexer being
- * used. Otherwise Cython indentation will break. */
- if (sci_get_lexer(sci) == SCLEX_PYTHON)
- additional_indent = iprefs->width * get_python_indent(sci, line);
- }
+ else if (sci_get_lexer(sci) == SCLEX_PYTHON) /* Python/Cython */
+ additional_indent = iprefs->width * get_python_indent(sci, line);
/* HTML lexer "has braces" because of PHP and JavaScript. If get_brace_indent() did not
* recommend us to insert additional indent, we are probably not in PHP/JavaScript chunk and
@@ Diff output truncated at 100000 characters. @@
--------------
This E-Mail was brought to you by github_commit_mail.py (Source: TBD).
More information about the Commits
mailing list