Branch: refs/heads/master
Author: Alexander Eberspächer <alex.eberspaecher(a)gmail.com>
Committer: Alexander Eberspächer <alex.eberspaecher(a)gmail.com>
Date: Fri, 10 Aug 2012 09:34:56
Commit: a17e37bcd84c642136614c6e60a62a4c1bd7604a
https://github.com/geany/geany/commit/a17e37bcd84c642136614c6e60a62a4c1bd76…
Log Message:
-----------
Test against the lexer instead of the filetype when computing
indentation. This fixes Cython indentation.
Modified Paths:
--------------
src/editor.c
Modified: src/editor.c
10 files changed, 8 insertions(+), 2 deletions(-)
===================================================================
@@ -1401,10 +1401,16 @@ 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
- if (editor->document->file_type->id == GEANY_FILETYPES_PYTHON)
- additional_indent = iprefs->width * get_python_indent(sci, line);
+ {
+ /* 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);
+ }
/* 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).
Branch: refs/heads/master
Author: Colomban Wendling <ban(a)herbesfolles.org>
Committer: Colomban Wendling <ban(a)herbesfolles.org>
Date: Tue, 07 Aug 2012 13:37:38
Commit: 4c2d8998d736d67215e0e1d7057505f19af6ae2f
https://github.com/geany/geany/commit/4c2d8998d736d67215e0e1d7057505f19af6a…
Log Message:
-----------
Fix a reference to a function in the documentation
Modified Paths:
--------------
src/ui_utils.c
Modified: src/ui_utils.c
2 files changed, 1 insertions(+), 1 deletions(-)
===================================================================
@@ -2616,7 +2616,7 @@ void ui_menu_add_document_items(GtkMenu *menu, GeanyDocument *active, GCallback
* @a compare_func might be NULL to not sort the documents in the menu. In this case,
* the order of the document tabs is used.
*
- * See document_sort_by_display_name() for an example sort function.
+ * See document_compare_by_display_name() for an example sort function.
*
* @param menu Menu.
* @param active Which document to highlight, or @c NULL.
@@ Diff output truncated at 100000 characters. @@
--------------
This E-Mail was brought to you by github_commit_mail.py (Source: TBD).