mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-19 17:23:43 +08:00
fix(flygrep): skip E33 when input is ~
This commit is contained in:
parent
6d72766f36
commit
d3939573cc
@ -345,7 +345,7 @@ local function open_win()
|
|||||||
pcall(vim.fn.timer_stop, grep_timer_id)
|
pcall(vim.fn.timer_stop, grep_timer_id)
|
||||||
job.stop(search_jobid)
|
job.stop(search_jobid)
|
||||||
search_hi_id =
|
search_hi_id =
|
||||||
vim.fn.matchadd(conf.matched_higroup, grep_input, 10, -1, { window = result_winid })
|
vim.fn.matchadd(conf.matched_higroup, grep_input:gsub('~', '\\~'), 10, -1, { window = result_winid })
|
||||||
grep_timer_id = vim.fn.timer_start(conf.timeout, grep_timer, { ['repeat'] = 1 })
|
grep_timer_id = vim.fn.timer_start(conf.timeout, grep_timer, { ['repeat'] = 1 })
|
||||||
else
|
else
|
||||||
pcall(vim.fn.matchdelete, search_hi_id, result_winid)
|
pcall(vim.fn.matchdelete, search_hi_id, result_winid)
|
||||||
|
Loading…
Reference in New Issue
Block a user