Keep the diff renderer probe out of the command log

If a diff renderer is configured, its command shows up in the command
log once after startup, although the user didn't do anything. This is
the probe that asks the renderer whether it emits OSC 1717 metadata. It
changes nothing, so like other read-only commands it shouldn't be
logged.
This commit is contained in:
Stefan Haller
2026-10-11 10:10:41 +02:00
parent fc570a6a31
commit aa3da6a20f
+1 -1
View File
@@ -124,7 +124,7 @@ func (self *DiffCommands) probeFiles() (string, string, func(), bool) {
}
func (self *DiffCommands) probeEmitsMetadata(cmdObj *oscommands.CmdObj) bool {
cmdObj.AddEnvVars("OSC1717=V1")
cmdObj.AddEnvVars("OSC1717=V1").DontLog()
// A renderer may well object to being handed nothing to render. We want to know
// whatever it said before objecting, and that is captured either way.
output, _ := cmdObj.RunWithOutput()