Debugging

master
Bryan 2024-10-21 22:13:27 -06:00
parent 8c7329b1d6
commit fe48e5a8e6
1 changed files with 1 additions and 1 deletions

View File

@ -64,9 +64,9 @@ end
function M.in_and_out_cmd() function M.in_and_out_cmd()
local current_pos = vim.fn.getcmdpos() local current_pos = vim.fn.getcmdpos()
local target_pos = nil local target_pos = nil
local line = vim.fn.getcmdline() local line = vim.fn.getcmdline()
vim.notify(current_pos .. line)
for _, char in ipairs(targets) do for _, char in ipairs(targets) do
local found_pos = string.find(line, escape_lua_pattern(char), current_pos + 1) local found_pos = string.find(line, escape_lua_pattern(char), current_pos + 1)
if found_pos and (not target_pos or found_pos < target_pos) then if found_pos and (not target_pos or found_pos < target_pos) then