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/03 12:42:47 UTC
[plc4x] branch develop updated: chore(plc4xbrowser): link issue when using a command from the last selection
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
The following commit(s) were added to refs/heads/develop by this push:
new 2bfea4eee chore(plc4xbrowser): link issue when using a command from the last selection
2bfea4eee is described below
commit 2bfea4eee05a3d0c9bbbe3807a84439d615c8ed9
Author: Sebastian Rühl <sr...@apache.org>
AuthorDate: Wed Aug 3 14:42:38 2022 +0200
chore(plc4xbrowser): link issue when using a command from the last selection
---
plc4go/tools/plc4xbrowser/main.go | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/plc4go/tools/plc4xbrowser/main.go b/plc4go/tools/plc4xbrowser/main.go
index 8b4afec40..7c879ebc8 100644
--- a/plc4go/tools/plc4xbrowser/main.go
+++ b/plc4go/tools/plc4xbrowser/main.go
@@ -74,7 +74,7 @@ func initSubsystem() {
commandsExecuted = len(config.History.Last10Commands)
_, _ = fmt.Fprintln(commandOutput, "[#0000ff]Last 10 commands[white]")
for i, command := range config.History.Last10Commands {
- _, _ = fmt.Fprintf(commandOutput, " %d: [\"%d\"]%s[\"\"]\n", i+1, i, command)
+ _, _ = fmt.Fprintf(commandOutput, " [#00ff00]%d[white]: [\"%d\"]%s[\"\"]\n", i+1, i+1, command)
}
}
@@ -239,6 +239,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
commandInputField.SetText(enteredCommandsView.GetRegionText(currentSelection[0]))
application.SetFocus(commandInputField)
}