Skip to content

Commit 9c53e2b

Browse files
committed
Merge branch 'fix-highlight-all-code' into fix-test-funciton-highlight
2 parents 9245237 + 3889059 commit 9c53e2b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pythonwhat/State.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ def __init__(self,
102102
self.student_context = Context(student_context) if student_context is None else student_context
103103
self.solution_context = Context(solution_context) if solution_context is None else solution_context
104104

105-
self.highlight = self.student_tree if highlight is None else highlight
105+
self.highlight = self.student_tree if (not highlight) and self.parent_state else highlight
106106

107107
self.converters = get_manual_converters() # accessed only from root state
108108

0 commit comments

Comments
 (0)