diff options
| author | Junegunn Choi <junegunn.c@gmail.com> | 2025-08-03 00:28:50 +0900 |
|---|---|---|
| committer | Junegunn Choi <junegunn.c@gmail.com> | 2025-08-03 00:29:05 +0900 |
| commit | af0014aba8bc49f6acb35f96cb9642bf3d163edd (patch) | |
| tree | 990b3cb80d3dcbeb52a6bc577e4ca98a4fa3df9f /src | |
| parent | da3d9957098d4742bf9d0174ad5d67e656079816 (diff) | |
| download | fzf-af0014aba8bc49f6acb35f96cb9642bf3d163edd.tar.gz | |
Fix a bug where you cannot unset the default `--nth` using `change-nth`
Diffstat (limited to 'src')
| -rw-r--r-- | src/terminal.go | 2 |
1 files changed, 1 insertions, 1 deletions
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 { |
