Skip to content

Commit a61b374

Browse files
Fix refiling to headline containing "/". Closes #388
1 parent 440e3de commit a61b374

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/orgmode/capture/init.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ function Capture:_refile_content_with_fallback(lines, fallback_file, item)
204204
end
205205

206206
local destination_file = valid_destinations[destination[1]]
207-
local destination_headline = destination[2]
207+
local destination_headline = table.concat({ unpack(destination, 2) }, '/')
208208
if not destination_headline or destination_headline == '' then
209209
return self:_refile_to_end(destination_file, lines, item)
210210
end

0 commit comments

Comments
 (0)