Permalink
Browse files

Minor style changes from last commit

  • Loading branch information...
1 parent a17e37b commit 7193a1161b0078dedea3dd588910daaf8b1f5dc7 @codebrainz committed Aug 11, 2012
Showing with 2 additions and 9 deletions.
  1. +2 −9 src/editor.c
View
@@ -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

0 comments on commit 7193a11

Please sign in to comment.