Skip to content

Commit 171ef59

Browse files
Fix changing todo state with todo keywords that contain regex chars.
1 parent 6c8ec4e commit 171ef59

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/orgmode/org/mappings.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -768,7 +768,7 @@ function OrgMappings:_change_todo_state(direction, use_fast_access)
768768

769769
local linenr = item.range.start_line
770770
local stars = string.rep('%*', item.level)
771-
local old_state = todo.value
771+
local old_state = vim.pesc(todo.value)
772772
if old_state ~= '' then
773773
old_state = old_state .. '%s+'
774774
end

0 commit comments

Comments
 (0)