Skip to content

Commit

Permalink
Wrap Words Addon: don't mix declaration and code to be C89 compliant
Browse files Browse the repository at this point in the history
  • Loading branch information
b4n committed Mar 18, 2012
1 parent a6c0fc6 commit fba329e
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions addons/src/ao_wrapwords.c
Expand Up @@ -48,12 +48,14 @@ GtkListStore *chars_list;

void enclose_text_action (guint key_id)
{
gint selection_end;
gchar insert_chars [2] = {0, 0};
ScintillaObject *sci_obj;

if (!enclose_enabled)
return;

gint selection_end;
gchar insert_chars [2] = {0, 0};
ScintillaObject *sci_obj = document_get_current ()->editor->sci;
sci_obj = document_get_current ()->editor->sci;

if (sci_get_selected_text_length (sci_obj) < 2)
return;
Expand Down

0 comments on commit fba329e

Please sign in to comment.