Branch: refs/heads/master
Author: Colomban Wendling <ban(a)herbesfolles.org>
Committer: Colomban Wendling <ban(a)herbesfolles.org>
Date: Thu, 09 May 2013 22:28:58 UTC
Commit: fdcf8f8d08983f1f7e63b8b5a0492d3765e9e7ba
https://github.com/geany/geany-plugins/commit/fdcf8f8d08983f1f7e63b8b5a0492…
Log Message:
-----------
pairtaghighliter: Fix crash on plugin unload
Fix crash on plugin unload if the plugin didn't run on any editor, or
if the last editor it ran on became invalid.
The global 'sci' variable wasn't set in 'plugin_cleanup()' and thus may
either have been uninitialized or initialized to a value not valid
anymore.
The simplest way to reproduce the crash was to load and then
immediately unload the plugin, without leaving the plugin manager
dialog.
Modified Paths:
--------------
pairtaghighlighter/src/pair_tag_highlighter.c
Modified: pairtaghighlighter/src/pair_tag_highlighter.c
10 files changed, 8 insertions(+), 2 deletions(-)
===================================================================
@@ -344,6 +344,12 @@ void plugin_init(GeanyData *data)
void plugin_cleanup(void)
{
- clear_previous_highlighting(highlightedBrackets[0], highlightedBrackets[1]);
- clear_previous_highlighting(highlightedBrackets[2], highlightedBrackets[3]);
+ GeanyDocument *doc = document_get_current();
+
+ if (doc)
+ {
+ sci = doc->editor->sci;
+ clear_previous_highlighting(highlightedBrackets[0], highlightedBrackets[1]);
+ clear_previous_highlighting(highlightedBrackets[2], highlightedBrackets[3]);
+ }
}
--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).
Branch: refs/heads/master
Author: Dimitar Zhekov <dimitar.zhekov(a)gmail.com>
Committer: Dimitar Zhekov <dimitar.zhekov(a)gmail.com>
Date: Wed, 08 May 2013 17:53:13 UTC
Commit: 37ecd6a6be15098b2f3a4e2353aa722ee7421350
https://github.com/geany/geany-plugins/commit/37ecd6a6be15098b2f3a4e2353aa7…
Log Message:
-----------
scope - ChangeLog fix
Modified Paths:
--------------
scope/ChangeLog
Modified: scope/ChangeLog
2 files changed, 2 insertions(+), 0 deletions(-)
===================================================================
@@ -7,6 +7,8 @@
Note that ScpTreeStore can not be currently used with Glade.
* src/view.c:
Small improvements.
+ * docs/scope.html, src/scope.c:
+ Increased version to 0.87.
2013-05-04 Dimitar Zhekov <dimitar.zhekov(a)gmail.com>
--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).