Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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