We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
org-edit-special
1 parent cf261f7 commit d7d0fc5Copy full SHA for d7d0fc5
lua/orgmode/objects/edit_special/types/src.lua
@@ -73,6 +73,9 @@ function EditSpecialSrc:init()
73
-- Only the "content" of the block should change, however we might not have content yet
74
-- so base the range off of the name of the block
75
local ft = self.src_block.children.parameters.text
76
+ if ft then
77
+ ft = utils.detect_filetype(ft) or ft:lower()
78
+ end
79
80
local bufnr = es_utils.make_temp_buf()
81
if not bufnr or not vim.api.nvim_buf_is_valid(bufnr) then
0 commit comments