File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed
Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -42,7 +42,11 @@ public class Scratch.Services.CtagsSymbolOutline : Scratch.Services.SymbolOutlin
4242 }
4343 construct {
4444 store. item_selected. connect ((selected) = > {
45+ if (selected == null ) {
46+ return ;
47+ }
4548 doc. goto (((CtagsSymbol )selected). line);
49+ store. selected = null ;
4650 });
4751 }
4852
Original file line number Diff line number Diff line change @@ -48,7 +48,12 @@ public class Scratch.Services.ValaSymbolOutline : Scratch.Services.SymbolOutline
4848 resolver = new Code .Plugins .ValaSymbolResolver ();
4949
5050 store. item_selected. connect ((selected) = > {
51+ if (selected == null ) {
52+ return ;
53+ }
54+
5155 doc. goto (((ValaSymbolItem )selected). symbol. source_reference. begin. line);
56+ store. selected = null ;
5257 });
5358
5459 doc. doc_closed. connect (doc_closed);
You can’t perform that action at this time.
0 commit comments