diff options
Diffstat (limited to 'internal/eventloop_exit.go')
| -rw-r--r-- | internal/eventloop_exit.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/internal/eventloop_exit.go b/internal/eventloop_exit.go index 105d9ac..9802a6f 100644 --- a/internal/eventloop_exit.go +++ b/internal/eventloop_exit.go @@ -81,7 +81,12 @@ func (e *eventLoop) handleExecExit(ep *event.Pair, execEv *types.ExecEvent) bool } func (e *eventLoop) handleNameExit(ep *event.Pair, nameEv *types.NameEvent) bool { + // File.Name() resolves to the "new" path (newname); surface the captured + // source path (oldname, at args[1] for the AT-variants) separately on the + // Pair so it reaches the output schema rather than living only in the + // TUI String() repr ("old:... ->new:..."). ep.File = file.NewOldnameNewname(nameEv.Oldname[:], nameEv.Newname[:]) + ep.Oldname = types.StringValue(nameEv.Oldname[:]) ep.Comm = e.comm(nameEv.GetTid()) return true } |
