m/fzf
1
0
mirror of https://github.com/junegunn/fzf.git synced 2025-11-16 07:13:48 -05:00

Fix a bug where you cannot unset the default --nth using change-nth

This commit is contained in:
Junegunn Choi
2025-08-03 00:28:50 +09:00
parent da3d995709
commit af0014aba8
3 changed files with 17 additions and 1 deletions

View File

@@ -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 {