MESSENGER 4955 disable WYSIWYG commands

This commit is contained in:
JanNiklas Grabowski
2023-09-07 16:33:23 +02:00
parent ac41d08e53
commit a8b759b63b
3 changed files with 9 additions and 2 deletions
@@ -128,7 +128,12 @@ class CompletionSuggestionService: CompletionSuggestionServiceProtocol {
items.send([])
currentTextTriggerSubject.send(nil)
case .slash:
currentTextTriggerSubject.send(TextTrigger(key: .slash, text: suggestionPattern.text))
// bwi: #4955 disable WYSIWYG commands
if BWIBuildSettings.shared.enableWYSIWYGCommands {
currentTextTriggerSubject.send(TextTrigger(key: .slash, text: suggestionPattern.text))
} else {
break
}
}
}