Skip to content

Commit 6c39469

Browse files
fix(buffer): Disable tmp flag on buffer after edit
Fixes #827
1 parent 94894f3 commit 6c39469

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

ftplugin/org.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,5 +65,5 @@ vim.b.undo_ftplugin = table.concat({
6565
'foldexpr<',
6666
'formatexpr<',
6767
'omnifunc<',
68-
'| unlet! b:org_bufnr',
68+
'| unlet! b:org_bufnr b:org_tmp_edit_window',
6969
}, ' ')

lua/orgmode/utils/init.lua

+1
Original file line numberDiff line numberDiff line change
@@ -538,6 +538,7 @@ function utils.edit_file(filename)
538538
end,
539539
close = function()
540540
vim.cmd('silent! w')
541+
vim.b.org_tmp_edit_window = nil
541542
if buf_not_already_loaded then
542543
vim.cmd('silent! bw!')
543544
else

0 commit comments

Comments
 (0)