We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
on_complete
1 parent ae6708a commit c0ee29eCopy full SHA for c0ee29e
lua/telescope/builtin/__git.lua
@@ -390,13 +390,7 @@ git.status = function(opts)
390
on_complete = {
391
function(self)
392
local lines = self.manager:num_results()
393
-
394
- -- HACK: unable to `self._get_prompt()` directly
395
- local cursor_line = vim.api.nvim_win_get_cursor(self.prompt_win)[1] - 1
396
- local prompt = vim.api
397
- .nvim_buf_get_lines(self.prompt_bufnr, cursor_line, cursor_line + 1, false)[1]
398
- :sub(#self.prompt_prefix + 1)
399
+ local prompt = action_state.get_current_line()
400
if lines == 0 and prompt == "" then
401
utils.notify("builtin.git_status", {
402
msg = "No changes found",
0 commit comments