We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 606c747 commit 5a5b486Copy full SHA for 5a5b486
lua/orgmode/capture/init.lua
@@ -73,9 +73,6 @@ function Capture:on_refile_close()
73
if not opts then
74
return
75
end
76
- if self.on_close then
77
- self.on_close(self, opts)
78
- end
79
if is_modified then
80
local choice =
81
vim.fn.confirm(string.format('Do you want to refile this to %s?', opts.destination_file.filename), '&Yes\n&No')
@@ -167,6 +164,9 @@ function Capture:_refile_from_capture_buffer(opts)
167
164
end)
168
165
:wait()
169
166
+ if self.on_close then
+ self.on_close(self, opts)
+ end
170
utils.echo_info(('Wrote %s'):format(destination_file.filename))
171
self:kill()
172
return true
0 commit comments