@ 261030.1 · fetching

261028.1 · bb0324d1b14b09e19e99bbb4eae0d37d85ac5a3a

fix(st): make ShowNotification a no-op

The st profile clears notifyDesktop so that st gets no notification escape, but ShowNotification still passed the empty format to Printf. That wrote "%!(EXTRA string=<title>, string=<body>)" to the terminal, where st drew it at the cursor. Skip it like the other optional escapes.

reading declarations

Changes to tscreen.go. All files

tscreen.go

@@ -1974,7 +1974,9 @@ func (t *tScreen) ShowNotification(title string, body string) { 		t.Unlock() 		return 	}-	t.Printf(t.notifyDesktop, stripOSCControlsIfNeeded(title), stripOSCControlsIfNeeded(body))+	if t.notifyDesktop != "" {+		t.Printf(t.notifyDesktop, stripOSCControlsIfNeeded(title), stripOSCControlsIfNeeded(body))+	} 	t.Unlock() }