Skip to content

Commit 2ed4b2a

Browse files
Apply line height when change to value is made (#179)
### Description Currently there is no change when the line height setting is changed, you had to reopen the file. This PR fixes that to apply the new value when it is changed. ### 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 https://user-images.githubusercontent.com/806104/234170447-b8a1b481-dd05-4f88-86b2-821ce37cb831.mp4
1 parent b4230c9 commit 2ed4b2a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Sources/CodeEditTextView/Controller/STTextViewController.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -288,6 +288,7 @@ public class STTextViewController: NSViewController, STTextViewDelegate, ThemeAt
288288
textView?.isEditable = isEditable
289289
textView.highlightSelectedLine = isEditable
290290
textView?.typingAttributes = attributesFor(nil)
291+
paragraphStyle = generateParagraphStyle()
291292
textView?.defaultParagraphStyle = paragraphStyle
292293

293294
rulerView?.backgroundColor = useThemeBackground ? theme.background : .clear

0 commit comments

Comments
 (0)