Commit 7d8d061c authored by Daniel Espinosa Ortiz's avatar Daniel Espinosa Ortiz

sourceview-completion: added messages for invalid contexts

parent 83930535
Pipeline #43490 passed with stages
in 12 minutes and 26 seconds
......@@ -50,11 +50,13 @@ public class GVlsui.CompletionProvider : GLib.Object, Gtk.SourceCompletionProvid
if (server == null) {
return;
}
if (context == null) {
Gtk.TextIter iter;
if (!(context is Gtk.SourceCompletionContext)) {
message ("GVls-Completion: Invalid Conext aborting...");
return;
}
Gtk.TextIter iter;
if (!context.get_iter (out iter)) {
message ("GVls-Completion: Invalid iterator aborting...");
return;
}
Gtk.TextIter end = Gtk.TextIter ();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment