mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-23 13:00:04 +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
|
||||
vim.fn.remove(grep_history, vim.fn.index(grep_history, grep_expr))
|
||||
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
|
||||
vim.fn.mkdir(vim.fn.expand(vim.g.spacevim_data_dir .. 'SpaceVim'))
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user