public CompletionProvider(Editor editor)
{
this.editor = editor;
- this.windowstate = editor.window.windowstate;
+
}
public void populate (SourceCompletionContext context)
{
+ if (this.windowstate == null) {
+ this.windowstate = this.editor.window.windowstate;
+ }
+
+
var buffer = context.completion.view.buffer;
var mark = buffer.get_insert ();
TextIter end;
return;
}
// now do our magic..
- var filtered_proposals = windowstate.file.palete().suggestComplete(
+ var filtered_proposals = this.windowstate.file.palete().suggestComplete(
this.windowstate.file,
this.editor.node,
this.editor.ptype,