Skip to content

Commit

Permalink
Truncate tail in RegexTextField
Browse files Browse the repository at this point in the history
  • Loading branch information
1024jp committed Nov 6, 2023
1 parent a09765c commit 5cf6721
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions CotEditor/Sources/RegexTextField.swift
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ struct RegexTextField: NSViewRepresentable {
textField.delegate = context.coordinator
textField.placeholderString = self.prompt.flatMap(String.init(localized:))
textField.isEditable = true
textField.lineBreakMode = .byTruncatingTail
(textField.cell as? PaddingTextFieldCell)?.leadingPadding = self.leadingInset

return textField
Expand Down

0 comments on commit 5cf6721

Please sign in to comment.