mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-03-23 17:49:57 +08:00
fix(flygrep): fix history updating
This commit is contained in:
parent
7e3a097dff
commit
695d0dbcd2
@ -91,7 +91,7 @@ local function update_history()
|
|||||||
if vim.fn.index(grep_history, grep_expr) >= 0 then
|
if vim.fn.index(grep_history, grep_expr) >= 0 then
|
||||||
vim.fn.remove(grep_history, vim.fn.index(grep_history, grep_expr))
|
vim.fn.remove(grep_history, vim.fn.index(grep_history, grep_expr))
|
||||||
end
|
end
|
||||||
vim.fn.add(grep_history, grep_expr)
|
table.insert(grep_history, grep_expr)
|
||||||
if vim.fn.isdirectory(vim.fn.expand(vim.g.spacevim_data_dir .. 'SpaceVim')) == 0 then
|
if vim.fn.isdirectory(vim.fn.expand(vim.g.spacevim_data_dir .. 'SpaceVim')) == 0 then
|
||||||
vim.fn.mkdir(vim.fn.expand(vim.g.spacevim_data_dir .. 'SpaceVim'))
|
vim.fn.mkdir(vim.fn.expand(vim.g.spacevim_data_dir .. 'SpaceVim'))
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user