RFC: cmdline completion (#362)
* manual support dot-repeat * cmdwin and terminal * cmdline only * Fix * fix * Improve * Fix test * Support macro * disable cmdline for now * Simplify * fmt * consume once * Ignore = type * cmdline * fmt * Improve * update * fmt * Support incsearch * fix * Add api * Avoid cmdline completion if the native_menu enabled * fix for macro * Improve * fmt * Insert-mode only by default * Update * avoid conflict * Improve default mapping * Fix * fix * similar to native * Update * Fix README.md * Improve * Use <afile>
This commit is contained in:
@@ -5,12 +5,12 @@ local misc = {}
|
||||
---@return function
|
||||
misc.once = function(callback)
|
||||
local done = false
|
||||
return function()
|
||||
return function(...)
|
||||
if done then
|
||||
return
|
||||
end
|
||||
done = true
|
||||
callback()
|
||||
callback(...)
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user