1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-03-23 17:49:57 +08:00

fix(flygrep): clear mode when open flygrep

This commit is contained in:
wsdjeg 2022-10-10 19:28:56 +08:00
parent 36085f623e
commit 85d3336201

View File

@ -565,6 +565,7 @@ function M.open(argv)
logger.warn(' [flygrep] make sure you have one search tool in your PATH') logger.warn(' [flygrep] make sure you have one search tool in your PATH')
return return
end end
mode = ''
mpt._handle_fly = flygrep mpt._handle_fly = flygrep
buffer_id = vim.api.nvim_create_buf(false, true) buffer_id = vim.api.nvim_create_buf(false, true)
local flygrep_win_height = 16 local flygrep_win_height = 16