You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@karaf.apache.org by gn...@apache.org on 2018/01/09 12:14:27 UTC

[karaf] branch master updated: [KARAF-5563] Enf-of-line display problem with the ShellTable on windows

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

gnodet pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/karaf.git


The following commit(s) were added to refs/heads/master by this push:
     new 54992e7  [KARAF-5563] Enf-of-line display problem with the ShellTable on windows
54992e7 is described below

commit 54992e731af8f3b9771a0274cc704299574ce5fe
Author: Guillaume Nodet <gn...@gmail.com>
AuthorDate: Tue Jan 9 13:14:14 2018 +0100

    [KARAF-5563] Enf-of-line display problem with the ShellTable on windows
---
 bundle/core/src/main/java/org/apache/karaf/bundle/command/List.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bundle/core/src/main/java/org/apache/karaf/bundle/command/List.java b/bundle/core/src/main/java/org/apache/karaf/bundle/command/List.java
index e33638d..59ee3b3 100644
--- a/bundle/core/src/main/java/org/apache/karaf/bundle/command/List.java
+++ b/bundle/core/src/main/java/org/apache/karaf/bundle/command/List.java
@@ -90,7 +90,7 @@ public class List extends BundlesCommand {
 
         ShellTable table = new ShellTable();
         if (!noEllipsis && terminal != null && terminal.getWidth() > 0) {
-            table.size(terminal.getWidth());
+            table.size(terminal.getWidth() - 1);
         }
         table.column("ID").alignRight();
         table.column("State");

-- 
To stop receiving notification emails like this one, please contact
['"commits@karaf.apache.org" <co...@karaf.apache.org>'].