You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2025/12/11 12:15:19 UTC

(camel) 14/19: camel-jbang - camel get history use jline to make it mode better

This is an automated email from the ASF dual-hosted git repository.

davsclaus pushed a commit to branch jline
in repository https://gitbox.apache.org/repos/asf/camel.git

commit cef80a3f04edfb2c09d3a078e08f15416ecc3e66
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Thu Dec 11 10:38:23 2025 +0100

    camel-jbang - camel get history use jline to make it mode better
---
 .../camel/dsl/jbang/core/commands/action/CamelHistoryAction.java      | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands/action/CamelHistoryAction.java b/dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands/action/CamelHistoryAction.java
index 5a4c0a34b4ad..3b60fe7995b5 100644
--- a/dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands/action/CamelHistoryAction.java
+++ b/dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands/action/CamelHistoryAction.java
@@ -236,7 +236,7 @@ public class CamelHistoryAction extends ActionWatchCommand {
             t.flush();
 
             // how many lines to jump per page
-            int pageSize = t.size().getRows() - 18;
+            int pageSize = t.size().getRows() - IT_MAX_ROWS;
 
             do {
                 String operation = t.readNextKeyBinding();
@@ -338,7 +338,7 @@ public class CamelHistoryAction extends ActionWatchCommand {
         // table header
         answer.add(new AttributedString(lines[0]));
 
-        // slice top table with maximum 10 rows
+        // slice top table with maximum IT_MAX_ROWS number of rows
         int rowPos = rowIndex.get();
         List<AttributedString> pending = new ArrayList<>();
         for (int i = 1; i < lines.length; i++) {