Branch: refs/heads/master Author: Nicolas Bruguier nicolas.bruguier@supersonicimagine.fr Committer: Frank Lanitz frank@frank.uvena.de Date: Mon, 24 Dec 2012 12:57:30 UTC Commit: aa1fc0f6af65e0f4632a4aecd3c458a875f922db https://github.com/geany/geany-plugins/commit/aa1fc0f6af65e0f4632a4aecd3c458...
Log Message: ----------- addon: fix crash
Modified Paths: -------------- addons/src/ao_wrapwords.c
Modified: addons/src/ao_wrapwords.c 3 files changed, 3 insertions(+), 0 deletions(-) =================================================================== @@ -86,6 +86,9 @@ gboolean on_key_press (GtkWidget *widget, GdkEventKey *event, gpointer user_data if (!auto_enabled) return FALSE;
+ if (document_get_current () == NULL) + return FALSE; + sci_obj = document_get_current ()->editor->sci;
if (sci_get_selected_text_length (sci_obj) < 2)
-------------- This E-Mail was brought to you by github_commit_mail.py (Source: TBD).