Skip to content

Commit 30dfff3

Browse files
committed
roll back addition of wrapped line stepper properties / presence in method signatures
1 parent 4e433c5 commit 30dfff3

File tree

2 files changed

+0
-11
lines changed

2 files changed

+0
-11
lines changed

Sources/CodeEditTextView/CodeEditTextView.swift

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ public struct CodeEditTextView: NSViewControllerRepresentable {
2121
/// - tabWidth: The tab width
2222
/// - lineHeight: The line height multiplier (e.g. `1.2`)
2323
/// - wrapLines: Whether lines wrap to the width of the editor
24-
/// - wrappedIndent: The number of spaces to indent wrapped lines
2524
/// - editorOverscroll: The percentage for overscroll, between 0-1 (default: `0.0`)
2625
public init(
2726
_ text: Binding<String>,
@@ -31,7 +30,6 @@ public struct CodeEditTextView: NSViewControllerRepresentable {
3130
tabWidth: Binding<Int>,
3231
lineHeight: Binding<Double>,
3332
wrapLines: Binding<Bool>,
34-
wrappedIndent: Binding<Int>,
3533
editorOverscroll: Binding<Double> = .constant(0.0),
3634
cursorPosition: Published<(Int, Int)>.Publisher? = nil
3735
) {
@@ -42,7 +40,6 @@ public struct CodeEditTextView: NSViewControllerRepresentable {
4240
self._tabWidth = tabWidth
4341
self._lineHeight = lineHeight
4442
self._wrapLines = wrapLines
45-
self._wrappedIndent = wrappedIndent
4643
self._editorOverscroll = editorOverscroll
4744
self.cursorPosition = cursorPosition
4845
}
@@ -54,7 +51,6 @@ public struct CodeEditTextView: NSViewControllerRepresentable {
5451
@Binding private var tabWidth: Int
5552
@Binding private var lineHeight: Double
5653
@Binding private var wrapLines: Bool
57-
@Binding private var wrappedIndent: Int
5854
@Binding private var editorOverscroll: Double
5955
private var cursorPosition: Published<(Int, Int)>.Publisher?
6056

@@ -68,7 +64,6 @@ public struct CodeEditTextView: NSViewControllerRepresentable {
6864
theme: theme,
6965
tabWidth: tabWidth,
7066
wrapLines: wrapLines,
71-
wrappedIndent: wrappedIndent,
7267
cursorPosition: cursorPosition,
7368
editorOverscroll: editorOverscroll
7469
)
@@ -82,7 +77,6 @@ public struct CodeEditTextView: NSViewControllerRepresentable {
8277
controller.theme = theme
8378
controller.tabWidth = tabWidth
8479
controller.wrapLines = wrapLines
85-
controller.wrappedIndent = wrappedIndent
8680
controller.lineHeightMultiple = lineHeight
8781
controller.editorOverscroll = editorOverscroll
8882
controller.reloadUI()

Sources/CodeEditTextView/STTextViewController.swift

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,6 @@ public class STTextViewController: NSViewController, STTextViewDelegate, ThemeAt
4747

4848
/// Whether lines wrap to the width of the editor
4949
public var wrapLines: Bool
50-
51-
/// The number of spaces to indent wrapped lines
52-
public var wrappedIndent: Int
5350

5451
// MARK: - Highlighting
5552

@@ -65,7 +62,6 @@ public class STTextViewController: NSViewController, STTextViewDelegate, ThemeAt
6562
theme: EditorTheme,
6663
tabWidth: Int,
6764
wrapLines: Bool,
68-
wrappedIndent: Int,
6965
cursorPosition: Published<(Int, Int)>.Publisher? = nil,
7066
editorOverscroll: Double
7167
) {
@@ -75,7 +71,6 @@ public class STTextViewController: NSViewController, STTextViewDelegate, ThemeAt
7571
self.theme = theme
7672
self.tabWidth = tabWidth
7773
self.wrapLines = wrapLines
78-
self.wrappedIndent = wrappedIndent
7974
self.cursorPosition = cursorPosition
8075
self.editorOverscroll = editorOverscroll
8176
super.init(nibName: nil, bundle: nil)

0 commit comments

Comments
 (0)