diff --git a/CHANGELOG.md b/CHANGELOG.md index 8b3fdfb15..714357d92 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,13 +10,18 @@ Change Log - “Input in unicode hex” now supports multi-cursor editing. +### Fixes + +- Improve stability. + + 3.7.2 (347) -------------------------- ### Improvements -- Make the i-beam cursor more legible in vertical text orientation and dark background theme. +- Make the i-beam cursor legible in vertical text orientation and dark background theme. - Use monospace numbers for line numbers in Find All result table. - Optimize performance highlighting found matches. - [dev] Update build environment to Xcode 10.2 (Swift 5). diff --git a/CotEditor/Sources/EditorTextView.swift b/CotEditor/Sources/EditorTextView.swift index ce28989e3..0785293ac 100644 --- a/CotEditor/Sources/EditorTextView.swift +++ b/CotEditor/Sources/EditorTextView.swift @@ -774,7 +774,9 @@ final class EditorTextView: NSTextView, Themable, CurrentLineHighlighting, Multi override func setNeedsDisplay(_ invalidRect: NSRect) { // expand rect as a workaroud for thick or multiple cursors (2018-11 macOS 10.14) - super.setNeedsDisplay(self.visibleRect, avoidAdditionalLayout: true) + if self.cursorType != .bar || self.hasMultipleInsertions { + super.setNeedsDisplay(self.visibleRect, avoidAdditionalLayout: true) + } super.setNeedsDisplay(invalidRect) }