From 78144878386beb98c33c7f3536d068b954e5f3e5 Mon Sep 17 00:00:00 2001 From: Christer Jansson Date: Tue, 4 Mar 2025 13:23:51 +0100 Subject: [PATCH] Update Todo.py Use raw string for regexp, to avoid syntax warning about invalid escape sequence. This probably also caused the regexp as such to not work as intended. --- ftplugin/orgmode/plugins/Todo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ftplugin/orgmode/plugins/Todo.py b/ftplugin/orgmode/plugins/Todo.py index 5b0b34b..faa77f9 100644 --- a/ftplugin/orgmode/plugins/Todo.py +++ b/ftplugin/orgmode/plugins/Todo.py @@ -251,7 +251,7 @@ def set_todo_state(cls, state): def init_org_todo(cls): u""" Initialize org todo selection window. """ - bufnr = int(re.findall('\d+$',vim.current.buffer.name)[0]) + bufnr = int(re.findall(r'\d+$',vim.current.buffer.name)[0]) all_states = ORGTODOSTATES.get(bufnr, None) vim_commands = [