Re fix #754
This commit is contained in:
@@ -67,13 +67,11 @@ end
|
|||||||
|
|
||||||
---Get current selected entry or nil
|
---Get current selected entry or nil
|
||||||
cmp.get_selected_entry = function()
|
cmp.get_selected_entry = function()
|
||||||
cmp.core.filter.raw(cmp.core)
|
|
||||||
return cmp.core.view:get_selected_entry()
|
return cmp.core.view:get_selected_entry()
|
||||||
end
|
end
|
||||||
|
|
||||||
---Get current active entry or nil
|
---Get current active entry or nil
|
||||||
cmp.get_active_entry = function()
|
cmp.get_active_entry = function()
|
||||||
cmp.core.filter.raw(cmp.core)
|
|
||||||
return cmp.core.view:get_active_entry()
|
return cmp.core.view:get_active_entry()
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -177,6 +175,7 @@ cmp.confirm = function(option, callback)
|
|||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
|
|
||||||
|
cmp.core.filter.raw(cmp.core)
|
||||||
local e = cmp.core.view:get_selected_entry() or (option.select and cmp.core.view:get_first_entry() or nil)
|
local e = cmp.core.view:get_selected_entry() or (option.select and cmp.core.view:get_first_entry() or nil)
|
||||||
if e then
|
if e then
|
||||||
cmp.core:confirm(e, {
|
cmp.core:confirm(e, {
|
||||||
|
|||||||
Reference in New Issue
Block a user