Skip to content

Commit 14db0ed

Browse files
committed
Fixed wrong context after refactoring the SymbolImpl. Now documentation should work again
1 parent 775f15e commit 14db0ed

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/de/halirutan/mathematica/documentation/MathematicaDocumentationProvider.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ public String generateDoc(PsiElement element, @Nullable PsiElement originalEleme
7171

7272
if (element instanceof Symbol) {
7373
String context = ((Symbol) element).getMathematicaContext();
74+
context = context.equals("") ? "System`" : context;
7475
String name = ((Symbol) element).getSymbolName();
7576
if (ALL_SLOT_PATTERN.matcher(name).matches()) {
7677
if (SLOT_PATTERN.matcher(name).matches()) name = "Slot";

0 commit comments

Comments
 (0)