Skip to content

Commit

Permalink
fix assertion in M68kConditionalAssemblyCodeBlockSupportHandler, #56
Browse files Browse the repository at this point in the history
  • Loading branch information
YannCebron committed Jul 9, 2023
1 parent 1a8680d commit a1492d1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
### Changed
- mark plugin compatible with 2023.2|3

### Fixed
- fix assertion in `M68kConditionalAssemblyCodeBlockSupportHandler` [#56](../../issues/56)

## 0.1.72 - 2023-02-21

### Changed
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ final class M68kConditionalAssemblyCodeBlockSupportHandler implements CodeBlockS
ranges.add(elementAtCursor.getTextRange());

final M68kConditionalAssemblyDirective startElement =
PsiTreeUtil.getParentOfType(elementAtCursor, M68kConditionalAssemblyDirective.class);
PsiTreeUtil.getParentOfType(elementAtCursor, M68kConditionalAssemblyDirective.class, false);
assert startElement != null;

// todo "hard" stop: where? section?
Expand Down

0 comments on commit a1492d1

Please sign in to comment.