Skip to content

Commit f9f260e

Browse files
committed
Bump CodeEditTextView
1 parent fa69a42 commit f9f260e

File tree

3 files changed

+24
-3
lines changed

3 files changed

+24
-3
lines changed

Example/CodeEditSourceEditorExample/CodeEditSourceEditorExample.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved

Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Package.swift

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,8 @@ let package = Package(
1616
dependencies: [
1717
// A fast, efficient, text view for code.
1818
.package(
19-
// url: "https://github.com/CodeEditApp/CodeEditTextView.git",
20-
// from: "0.9.1"
21-
path: "../CodeEditTextView"
19+
url: "https://github.com/CodeEditApp/CodeEditTextView.git",
20+
from: "0.10.0"
2221
),
2322
// tree-sitter languages
2423
.package(

Tests/CodeEditSourceEditorTests/TextViewControllerTests.swift

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -441,5 +441,18 @@ final class TextViewControllerTests: XCTestCase {
441441
let controller = Mock.textViewController(theme: Mock.theme())
442442
XCTAssertNotNil(controller.treeSitterClient)
443443
}
444+
445+
// MARK: - Minimap
446+
447+
func test_minimapToggle() {
448+
controller.view.frame = NSRect(x: 0, y: 0, width: 1000, height: 1000)
449+
XCTAssertFalse(controller.minimapView.isHidden)
450+
451+
controller.showMinimap = false
452+
XCTAssertTrue(controller.minimapView.isHidden)
453+
454+
controller.showMinimap = true
455+
XCTAssertFalse(controller.minimapView.isHidden)
456+
}
444457
}
445458
// swiftlint:enable all

0 commit comments

Comments
 (0)