From af0014aba8bc49f6acb35f96cb9642bf3d163edd Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Sun, 3 Aug 2025 00:28:50 +0900 Subject: Fix a bug where you cannot unset the default `--nth` using `change-nth` --- src/terminal.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/terminal.go') diff --git a/src/terminal.go b/src/terminal.go index 9c34eca0..0fd5d006 100644 --- a/src/terminal.go +++ b/src/terminal.go @@ -5726,7 +5726,7 @@ func (t *Terminal) Loop() error { capture(true, func(expr string) { // Split nth expression tokens := strings.Split(expr, "|") - if nth, err := splitNth(tokens[0]); err == nil { + if nth, err := splitNth(tokens[0]); err == nil || len(expr) == 0 { // Changed newNth = &nth } else { -- cgit v1.2.3