Permalink
Browse files

xmlsnippets: Don't mix declarations and code

  • Loading branch information...
1 parent 23dd34c commit 87c6d0d7aa8dd601a3ebf3c0dbe7e904ab1da4f1 @b4n b4n committed Jun 16, 2012
Showing with 3 additions and 2 deletions.
  1. +3 −2 xmlsnippets/src/plugin.c
View
@@ -79,15 +79,16 @@ static gboolean editor_notify_cb(GObject *object, GeanyEditor *editor,
if ((style <= SCE_H_XCCOMMENT || highlighting_is_string_style(lexer, style)) &&
!highlighting_is_comment_style(lexer, style))
{
+ CompletionInfo c;
+ InputInfo i;
+
/* Grab the last 512 characters or so */
min = pos - sizeof(sel);
if (min < 0) min = 0;
size = pos - min;
sci_get_text_range(editor->sci, min, pos, sel);
- CompletionInfo c;
- InputInfo i;
if (get_completion(editor, sel, size, &c, &i))
{
/* Remove typed opening tag */

0 comments on commit 87c6d0d

Please sign in to comment.