Skip to content

Commit

Permalink
fix(mdFencedCodeBlock): codeblocks in lists being ignored
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisgrieser committed Dec 4, 2024
1 parent 9905d24 commit 09f99d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/various-textobjs/textobjs/linewise.lua
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ end
---@param scope "inner"|"outer" inner excludes the backticks
function M.mdFencedCodeBlock(scope)
local cursorLnum = vim.api.nvim_win_get_cursor(0)[1]
local codeBlockPattern = "^```%w*$"
local codeBlockPattern = "```%w*$" -- only check end of line, see #78

-- scan buffer for all code blocks, add beginnings & endings to a table each
local cbBegin = {}
Expand Down

0 comments on commit 09f99d3

Please sign in to comment.