Let toggle-track disable track action

Currently the `toggle-track` action does not toggle off the tracking of
the current selection started by the `track` action. The only way of
disabling it is by changing the focus.

Change this by treating `trackCurrent` like `trackEnabled`.
pull/3691/head
Julian Prein 2 months ago
parent db6db49ed6
commit 4c900a66b8
No known key found for this signature in database
GPG Key ID: CA6B3A516FAC2555

@ -3772,6 +3772,8 @@ func (t *Terminal) Loop() {
req(reqPrompt)
case actToggleTrack:
switch t.track {
case trackCurrent:
fallthrough
case trackEnabled:
t.track = trackDisabled
case trackDisabled:

Loading…
Cancel
Save