Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use Textual's
TextArea.code_editor
if available
Textual 0.48 introduces a breaking change for the `TextArea` widget: line wrapping is now enabled by default. Since we don't want line wrapping, we need to disable that. Fortunately, a new alternative constructor called `TextArea.code_editor` is introduced, and constructing the `TextArea` using it retains the old behavior. Unfortunately, that alternative constructor didn't exist prior to Textual 0.48, so we need to conditionally fall back to simply using the `TextArea` constructor when `TextArea.code_editor` doesn't exist. Signed-off-by: Matt Wozniski <[email protected]>
- Loading branch information