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/10/28 18:07:56 UTC

[plc4x] 02/05: fix(plc4xpcapanalyzer): fix file navigation

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 e54ee39ad4f7a9de31e6e16a49a3d843332a4918
Author: Sebastian Rühl <sr...@apache.org>
AuthorDate: Fri Oct 28 18:08:21 2022 +0200

    fix(plc4xpcapanalyzer): fix file navigation
---
 plc4go/tools/plc4xpcapanalyzer/ui/commands.go | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/plc4go/tools/plc4xpcapanalyzer/ui/commands.go b/plc4go/tools/plc4xpcapanalyzer/ui/commands.go
index e44dc8c89..bffd10e44 100644
--- a/plc4go/tools/plc4xpcapanalyzer/ui/commands.go
+++ b/plc4go/tools/plc4xpcapanalyzer/ui/commands.go
@@ -83,6 +83,8 @@ var rootCommand = Command{
 					proposedCurrentDir = currentDir + strings.TrimPrefix(newDir, ".")
 				} else if strings.HasPrefix(newDir, ""+string(os.PathSeparator)) {
 					proposedCurrentDir = newDir
+				} else {
+					proposedCurrentDir = currentDir + string(os.PathSeparator) + newDir
 				}
 				stat, err := os.Stat(proposedCurrentDir)
 				if err != nil {