Skip to content

Commit 30eb8a8

Browse files
[hotfix:] Use Correct Minimap Line Height (#321)
### Description Updates the `MinimapLineRenderer` to have the correct protocol parameters to correctly set it's customized layout information. ### Related Issues N/A ### Checklist - [x] I read and understood the [contributing guide](https://github.com/CodeEditApp/CodeEdit/blob/main/CONTRIBUTING.md) as well as the [code of conduct](https://github.com/CodeEditApp/CodeEdit/blob/main/CODE_OF_CONDUCT.md) - [x] The issues this PR addresses are related to each other - [x] My changes generate no new warnings - [x] My code builds and runs on my machine - [x] My changes are all related to the related issue above - [x] I documented my code ### Screenshots
1 parent 1109665 commit 30eb8a8

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

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

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

Package.resolved

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

Package.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ let package = Package(
1717
// A fast, efficient, text view for code.
1818
.package(
1919
url: "https://github.com/CodeEditApp/CodeEditTextView.git",
20-
from: "0.11.0"
20+
from: "0.11.1"
2121
),
2222
// tree-sitter languages
2323
.package(

Sources/CodeEditSourceEditor/Minimap/MinimapLineRenderer.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ final class MinimapLineRenderer: TextLayoutManagerRenderDelegate {
2121
range: NSRange,
2222
stringRef: NSTextStorage,
2323
markedRanges: MarkedRanges?,
24-
lineBreakStrategy: LineBreakStrategy
24+
attachments: [AnyTextAttachment]
2525
) {
2626
let maxWidth: CGFloat = if let textView, textView.wrapLines {
2727
textView.layoutManager.maxLineLayoutWidth

0 commit comments

Comments
 (0)