Skip to content

Commit

Permalink
Fix visibility of multiple insertion points on not editable
Browse files Browse the repository at this point in the history
  • Loading branch information
1024jp committed Mar 4, 2025
1 parent e59e7ed commit 0e79d31
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@
- Remove the Script menu from the context menu.


### Fixes

- Fix an issue where multiple text insertion points persist as visible even when the document is made not editable.



5.1.1 (705)
--------------------------
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,14 @@ final class EditorTextView: NSTextView, CurrentLineHighlighting, MultiCursorEdit
}


override var isEditable: Bool {

didSet {
self.invalidateInsertionIndicatorDisplayMode()
}
}


override func becomeFirstResponder() -> Bool {

guard super.becomeFirstResponder() else { return false }
Expand Down

0 comments on commit 0e79d31

Please sign in to comment.