Skip to content

Commit

Permalink
#56: added new constant
Browse files Browse the repository at this point in the history
added new constant for maximum results to display
  • Loading branch information
jan-vcapgemini committed Nov 7, 2023
1 parent 047abe8 commit 67b35db
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cli/src/main/java/com/devonfw/tools/ide/cli/Ide.java
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ public final class Ide {

private static final String INVALID_ARGUMENT_WITH_CAUSE = INVALID_ARGUMENT + ":{}";

private static final int AUTOCOMPLETER_MAX_RESULTS = 50;

private AbstractIdeContext context;

/**
Expand Down Expand Up @@ -172,7 +174,7 @@ private void initializeJlineCompletion() {
IdeCompleter completer = new IdeCompleter(init, context);

LineReader reader = LineReaderBuilder.builder().terminal(terminal).completer(completer).parser(parser)
.variable(LineReader.LIST_MAX, 50).build();
.variable(LineReader.LIST_MAX, AUTOCOMPLETER_MAX_RESULTS).build();

// Create autosuggestion widgets
AutosuggestionWidgets autosuggestionWidgets = new AutosuggestionWidgets(reader);
Expand Down

0 comments on commit 67b35db

Please sign in to comment.