You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@plc4x.apache.org by sr...@apache.org on 2022/08/05 13:45:37 UTC

[plc4x] 01/02: fix(plc4xbrowser): don't wrap messages as this destroys layout

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

sruehl pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/plc4x.git

commit 36c2ce0fa08e7ea0be7a18dfc95d99c3fa51f66f
Author: Sebastian Rühl <sr...@apache.org>
AuthorDate: Fri Aug 5 15:44:56 2022 +0200

    fix(plc4xbrowser): don't wrap messages as this destroys layout
---
 plc4go/tools/plc4xbrowser/ui.go | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/plc4go/tools/plc4xbrowser/ui.go b/plc4go/tools/plc4xbrowser/ui.go
index f6401d32a..5bf465a5e 100644
--- a/plc4go/tools/plc4xbrowser/ui.go
+++ b/plc4go/tools/plc4xbrowser/ui.go
@@ -181,7 +181,7 @@ func buildCommandArea(newPrimitive func(text string) tview.Primitive, applicatio
 					enteredCommandsView.Highlight("0").ScrollToHighlight()
 				}
 				if len(currentSelection) == 1 {
-					// TODO: currently this is broken due to https://github.com/rivo/tview/issues/751
+					// TODO: currently this is broken due to https://github.com/rivo/tview/issues/751 (workaround active with sruehl fix fork)
 					commandInputField.SetText(enteredCommandsView.GetRegionText(currentSelection[0]))
 					application.SetFocus(commandInputField)
 				}
@@ -217,7 +217,8 @@ func buildOutputArea(newPrimitive func(text string) tview.Primitive, application
 				//SetDynamicColors(true).
 				SetDynamicColors(false).
 				SetRegions(true).
-				SetWordWrap(true).
+				SetWordWrap(false).
+				SetWrap(false).
 				SetChangedFunc(func() {
 					application.Draw()
 				})