Branch: refs/heads/master Author: Pavel Roschin roshin@scriptumplus.ru Committer: Pavel Roschin roshin@scriptumplus.ru Date: Mon, 04 Nov 2013 12:57:41 UTC Commit: 887c8bdbfd1ea6d449a0f0a29eb000f8e6b27213 https://github.com/geany/geany-plugins/commit/887c8bdbfd1ea6d449a0f0a29eb000...
Log Message: ----------- Autoclose: fix bug with return between sci_undo*
return between sci_undo transaction will break undos completely
Modified Paths: -------------- autoclose/src/autoclose.c
Modified: autoclose/src/autoclose.c 3 files changed, 2 insertions(+), 1 deletions(-) =================================================================== @@ -410,7 +410,7 @@ if (char_is_curly_bracket(ch)) { if (line_start == line_end) - return AC_CONTINUE_ACTION; + goto final; if (line_start > line_end) { line = line_end; @@ -433,6 +433,7 @@ unindent_line(sci, i, indent_width); } } +final: sci_end_undo_action(sci); return AC_STOP_ACTION; }
-------------- This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).