Skip to content

Commit

Permalink
Fix CommandPopUp bug
Browse files Browse the repository at this point in the history
  • Loading branch information
JJtan2002 committed Nov 6, 2024
1 parent 327d065 commit 62c0247
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public AutoSuggestionTextField() {
// Listen for text changes
textProperty().addListener((obs, oldText, newText) -> {
if (!newText.trim().isEmpty()) {
String[] text = newText.split("\\s+");
String[] text = newText.trim().split("\\s+");
String command = text[0];
boolean hasParams = false;
if (text.length > 1 || newText.contains(" ")) {
Expand Down

0 comments on commit 62c0247

Please sign in to comment.