Skip to content

Commit

Permalink
Merge pull request #280 from squarebit-studios/dev
Browse files Browse the repository at this point in the history
fix (PySide6): Bugfix following PySide6 update
  • Loading branch information
ImLucasBrown authored Nov 15, 2024
2 parents 15718f6 + d23efd5 commit f1234c2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion nxt_editor/dockwidgets/code_editor.py
Original file line number Diff line number Diff line change
Expand Up @@ -778,7 +778,7 @@ def focusOutEvent(self, event):
return QtWidgets.QPlainTextEdit.focusOutEvent(self, event)

def wheelEvent(self, event):
delta = event.delta()
delta = event.angleDelta().y() / 8
if event.modifiers() == QtCore.Qt.ControlModifier:
if delta > 0:
self.set_font_size(delta=0.5)
Expand Down
2 changes: 1 addition & 1 deletion nxt_editor/dockwidgets/syntax.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ def match_multiline(self, text, delimiter, in_state, style):
while start >= 0:
match = delimiter.match(text)
# Look for the ending delimiter
end = match.capturedStart() + (start + add)
end = match.capturedStart() - (start + add)
# Ending delimiter on this line?
if end >= add:
length = end - start + add + match.capturedLength()
Expand Down

0 comments on commit f1234c2

Please sign in to comment.