diff --git a/lua/telescope/config.lua b/lua/telescope/config.lua index 85287b8..f69f30d 100644 --- a/lua/telescope/config.lua +++ b/lua/telescope/config.lua @@ -353,24 +353,24 @@ append( append( "get_status_text", - function(self) + function(self, opts) local ww = #(self:get_multi_selection()) local xx = (self.stats.processed or 0) - (self.stats.filtered or 0) local yy = self.stats.processed or 0 - if xx == 0 and yy == 0 then - return "" + + local status_icon = "" + if opts and not opts.completed then + status_icon = "*" + end + + if xx == 0 and yy == 0 then + return status_icon end - -- local status_icon - -- if opts.completed then - -- status_icon = "✔️" - -- else - -- status_icon = "*" - -- end if ww == 0 then - return string.format("%s / %s", xx, yy) + return string.format("%s %s / %s", status_icon, xx, yy) else - return string.format("%s / %s / %s", ww, xx, yy) + return string.format("%s %s / %s / %s", status_icon, ww, xx, yy) end end, [[ diff --git a/lua/telescope/finders.lua b/lua/telescope/finders.lua index 142a477..20698ca 100644 --- a/lua/telescope/finders.lua +++ b/lua/telescope/finders.lua @@ -87,6 +87,7 @@ function JobFinder:_find(prompt, process_result, process_complete) local opts = self:fn_command(prompt) if not opts then + process_complete() return end diff --git a/lua/telescope/finders/async_job_finder.lua b/lua/telescope/finders/async_job_finder.lua index d795414..23444e7 100644 --- a/lua/telescope/finders/async_job_finder.lua +++ b/lua/telescope/finders/async_job_finder.lua @@ -33,6 +33,7 @@ return function(opts) local job_opts = fn_command(prompt) if not job_opts then + process_complete() return end diff --git a/lua/telescope/pickers.lua b/lua/telescope/pickers.lua index d6615b4..1ad989d 100644 --- a/lua/telescope/pickers.lua +++ b/lua/telescope/pickers.lua @@ -789,7 +789,7 @@ function Picker:get_selection_row() end return self._selection_row end - return self.max_results + return self:get_reset_row() end --- Move the current selection by `change` steps