on main help sign in
fix(ui): fix bug preventing pasting text on windows (#2126)

Fixes #2118

commit2d0a0e2764686ccb503f91215a22c911fada30c0 authorAndrey Nering <andreynering@users.noreply.github.com> dateWed 4 Feb 2026, 17:08 (8 months ago) parentb28f4ce
1 file changed+3
internal/ui/model/ui.go+3
internal/ui/model/ui.go+3
@@ -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