@@ -2921,6 +2921,9 @@ func (m *UI) handlePasteMsg(msg tea.PasteMsg) tea.Cmd {
29212921 // Otherwise, paste as text.
29222922 paths := fsext.ParsePastedFiles(msg.Content)
29232923 allExistsAndValid := func() bool {
2924+ if len(paths) == 0 {
2925+ return false
2926+ }
29242927 for _, path := range paths {
29252928 if _, err := os.Stat(path); os.IsNotExist(err) {
29262929 return false