mirror of
https://github.com/kristoferssolo/telescope-frecency.nvim.git
synced 2025-10-21 20:10:38 +00:00
fix: show validation message validly (#258)
In loading frecency at Neovim startup, `vim.ui.select`'s dialog does not show message on the first line. This fixes it.
This commit is contained in:
parent
5a80665fa7
commit
7634ec0d2d
@ -121,7 +121,7 @@ function Frecency:validate_database(force)
|
||||
-- uses vim.fn.* function and it makes E5560 error.
|
||||
async.util.scheduler()
|
||||
vim.ui.select({ "y", "n" }, {
|
||||
prompt = self:message("remove %d entries from database?", #unlinked),
|
||||
prompt = "\n" .. self:message("remove %d entries from database?", #unlinked),
|
||||
---@param item "y"|"n"
|
||||
---@return string
|
||||
format_item = function(item)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user