fix: fix engine lists remove

This commit is contained in:
JuanZoran 2023-02-08 01:14:25 +08:00
parent 85fdf7f58d
commit 0dca4c2007
2 changed files with 2 additions and 2 deletions

View File

@ -322,7 +322,7 @@ local function online_query(win, word)
local s = '%s %s'
local width, height = hover.width, hover.height
local function waitting_result(this, times)
for i = 1, size do
for i = size, 1, -1 do
local res = lists[i][1]
if res then
buffer:wipe()

View File

@ -49,7 +49,7 @@ function window:set_width(width)
end
---Expand window [width | height] value
---@param opts table 窗口的配置
---@param opts table
---|'field'string [width | height]
---|'target'integer
---@return function