Skip to content

Commit

Permalink
fix #103 (regression from 508289b): could no longer add linebreak wit…
Browse files Browse the repository at this point in the history
…h `return` in status composer if no autocomplete had ever been invoked
  • Loading branch information
chucker committed Apr 11, 2023
1 parent cb84535 commit 36d6fa4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CoreTootin/Controls/BaseComposerTextView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ open class BaseComposerTextView: SuggestionTextView

public override func insertNewline(_ sender: Any?)
{
guard let activeSuggestionWindowController, activeSuggestionWindowController.isWindowVisible == false else
if activeSuggestionWindowController?.isWindowVisible == true
{
insertCurrentlySelectedSuggestion()
return
Expand Down

0 comments on commit 36d6fa4

Please sign in to comment.