# HG changeset patch # User nadvornik # Date 1245264070 0 # Node ID c16f499ea1ce5a759583ea393d4dfc07b061f488 # Parent 82de367f2d72d7d948e7cb0febe7c3d6cba8162b made file_util_start_editor_from_file consider also sidecars diff -r 82de367f2d72 -r c16f499ea1ce src/utilops.c --- a/src/utilops.c Wed Jun 17 18:19:11 2009 +0000 +++ b/src/utilops.c Wed Jun 17 18:41:10 2009 +0000 @@ -2180,7 +2180,13 @@ flist = filelist_copy(source_list); if (source_fd) + { + /* flist is most probably NULL + operate on source_fd and it's sidecars + */ + flist = g_list_concat(filelist_copy(source_fd->sidecar_files), flist); flist = g_list_append(flist, file_data_ref(source_fd)); + } if (!flist) return;