From 5ec8c52025bcead41c8f70e97540cd7d7a37c781 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 6 May 2026 12:15:08 +0530 Subject: [PATCH] ... --- kittens/dnd/drop.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kittens/dnd/drop.go b/kittens/dnd/drop.go index ed10d05cf..8e9107762 100644 --- a/kittens/dnd/drop.go +++ b/kittens/dnd/drop.go @@ -112,7 +112,7 @@ type remote_dir_entry struct { const case_conflict_template = "case-conflict-%d-%s" func uniqify_child_names(names []string, is_case_sensitive_filesystem bool) []string { - if is_case_sensitive_filesystem { + if !is_case_sensitive_filesystem { seen := utils.NewSet[string](len(names)) for i, x := range names { name := x @@ -349,7 +349,7 @@ func (d *remote_dir_entry) add_remote_data(data []byte, output_buf []byte, has_m handle := new_dir_handle(f) defer handle.unref() s := utils.NewSeparatorScanner("", "\x00") - for _, name := range uniqify_child_names(s.Split(dest.String()), !is_case_sensitive_filesystem) { + for _, name := range uniqify_child_names(s.Split(dest.String()), is_case_sensitive_filesystem) { d.children = append(d.children, &remote_dir_entry{name: name, base_dir: handle.newref()}) } }