Skip to content

Commit d7d0fc5

Browse files
authored
fix: fix file type detection in org-edit-special on macOS. (#757)
1 parent cf261f7 commit d7d0fc5

File tree

1 file changed

+3
-0
lines changed
  • lua/orgmode/objects/edit_special/types

1 file changed

+3
-0
lines changed

lua/orgmode/objects/edit_special/types/src.lua

+3
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,9 @@ function EditSpecialSrc:init()
7373
-- Only the "content" of the block should change, however we might not have content yet
7474
-- so base the range off of the name of the block
7575
local ft = self.src_block.children.parameters.text
76+
if ft then
77+
ft = utils.detect_filetype(ft) or ft:lower()
78+
end
7679

7780
local bufnr = es_utils.make_temp_buf()
7881
if not bufnr or not vim.api.nvim_buf_is_valid(bufnr) then

0 commit comments

Comments
 (0)