Debugging
parent
8c7329b1d6
commit
fe48e5a8e6
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue