Skip to content

Commit

Permalink
fix: fix file type detection in org-edit-special on macOS. (#757)
Browse files Browse the repository at this point in the history
  • Loading branch information
milanglacier authored Jun 14, 2024
1 parent cf261f7 commit d7d0fc5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lua/orgmode/objects/edit_special/types/src.lua
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@ function EditSpecialSrc:init()
-- Only the "content" of the block should change, however we might not have content yet
-- so base the range off of the name of the block
local ft = self.src_block.children.parameters.text
if ft then
ft = utils.detect_filetype(ft) or ft:lower()
end

local bufnr = es_utils.make_temp_buf()
if not bufnr or not vim.api.nvim_buf_is_valid(bufnr) then
Expand Down

0 comments on commit d7d0fc5

Please sign in to comment.