feat(performance): Major performance improvements using async v2 from @oberblastmeister (#987)
* start: Working w/ async jobs * short circuit to using bad finder if you pass writer.
This commit is contained in:
@@ -582,12 +582,22 @@ actions.git_staging_toggle = function(prompt_bufnr)
|
||||
end
|
||||
|
||||
local entry_to_qf = function(entry)
|
||||
local text = entry.text
|
||||
|
||||
if not text then
|
||||
if type(entry.value) == "table" then
|
||||
text = entry.value.text
|
||||
else
|
||||
text = entry.value
|
||||
end
|
||||
end
|
||||
|
||||
return {
|
||||
bufnr = entry.bufnr,
|
||||
filename = from_entry.path(entry, false),
|
||||
lnum = entry.lnum,
|
||||
col = entry.col,
|
||||
text = entry.text or entry.value.text or entry.value,
|
||||
text = text,
|
||||
}
|
||||
end
|
||||
|
||||
|
||||
@@ -18,7 +18,7 @@ end
|
||||
|
||||
--- Gets the current line
|
||||
function action_state.get_current_line()
|
||||
return global_state.get_global_key "current_line"
|
||||
return global_state.get_global_key "current_line" or ""
|
||||
end
|
||||
|
||||
--- Gets the current picker
|
||||
|
||||
Reference in New Issue
Block a user