From 65db5844cf0d550a8f6255b2138cc5173261901a Mon Sep 17 00:00:00 2001 From: R Landau Date: Mon, 16 Jun 2025 13:51:40 -0700 Subject: [PATCH] fix: enforce path !empty check no matter file/dir allow states --- filepicker/filepicker.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/filepicker/filepicker.go b/filepicker/filepicker.go index 3898742c8..700792823 100644 --- a/filepicker/filepicker.go +++ b/filepicker/filepicker.go @@ -496,7 +496,7 @@ func (m Model) didSelectFile(msg tea.Msg) (bool, string) { } } - if (!isDir && m.FileAllowed) || (isDir && m.DirAllowed) && m.Path != "" { + if ((!isDir && m.FileAllowed) || (isDir && m.DirAllowed)) && m.Path != "" { return true, m.Path }