Skip to content
This repository has been archived by the owner on Jan 15, 2024. It is now read-only.

Commit

Permalink
Merge pull request #26 from IndianBoy42/patch-1
Browse files Browse the repository at this point in the history
Fix deprecation warning in the Telescope command
  • Loading branch information
pianocomposer321 authored Oct 20, 2021
2 parents d5dc173 + 4d0f610 commit 0ccc156
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lua/telescope/_extensions/yabs.lua
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
local telescope = require('telescope')
local actions = require('telescope.actions')
local actionstate = require('telescope.actions.state')
local pickers = require('telescope.pickers')
local finders = require('telescope.finders')
local sorters = require('telescope.sorters')
Expand Down Expand Up @@ -34,7 +35,7 @@ local function select_task(opts, scope)
attach_mappings = function(prompt_bufnr)
local source_session = function()
actions.close(prompt_bufnr)
local entry = actions.get_selected_entry(prompt_bufnr)
local entry = actionstate.get_selected_entry(prompt_bufnr)
if entry then
Yabs:run_task(entry.value, {scope = scope})
end
Expand Down

0 comments on commit 0ccc156

Please sign in to comment.