@@ -8,7 +8,7 @@ local flatten = vim.tbl_flatten
88local A = {}
99
1010local function close_telescope_prompt (prompt_bufnr )
11- local selection = action_state .get_selected_entry (prompt_bufnr )
11+ local selection = action_state .get_selected_entry ()
1212 actions .close (prompt_bufnr )
1313 local tmp_table = vim .split (selection .value , " \t " )
1414 if vim .tbl_isempty (tmp_table ) then
7979
8080A .gh_web_view = function (type )
8181 return function (prompt_bufnr )
82- local selection = action_state .get_selected_entry (prompt_bufnr )
82+ local selection = action_state .get_selected_entry ()
8383 actions .close (prompt_bufnr )
8484 local tmp_table = vim .split (selection .value , " \t " )
8585 if vim .tbl_isempty (tmp_table ) then
@@ -90,7 +90,7 @@ A.gh_web_view = function(type)
9090end
9191
9292A .gh_gist_append = function (prompt_bufnr )
93- local selection = action_state .get_selected_entry (prompt_bufnr )
93+ local selection = action_state .get_selected_entry ()
9494 actions .close (prompt_bufnr )
9595 if selection .id == " " then
9696 return
@@ -111,7 +111,7 @@ A.gh_gist_create = function(prompt_bufnr)
111111end
112112
113113A .gh_gist_edit = function (prompt_bufnr )
114- local selection = action_state .get_selected_entry (prompt_bufnr )
114+ local selection = action_state .get_selected_entry ()
115115 actions .close (prompt_bufnr )
116116 if selection .id == " " then
117117 return
@@ -120,7 +120,7 @@ A.gh_gist_edit = function(prompt_bufnr)
120120end
121121
122122A .gh_gist_delete = function (prompt_bufnr )
123- local selection = action_state .get_selected_entry (prompt_bufnr )
123+ local selection = action_state .get_selected_entry ()
124124 actions .close (prompt_bufnr )
125125 if selection .id == " " then
126126 return
@@ -133,7 +133,7 @@ A.gh_gist_delete = function(prompt_bufnr)
133133end
134134
135135A .gh_secret_append = function (prompt_bufnr )
136- local selection = action_state .get_selected_entry (prompt_bufnr )
136+ local selection = action_state .get_selected_entry ()
137137 actions .close (prompt_bufnr )
138138 if selection .value == " " then
139139 return
@@ -144,7 +144,7 @@ A.gh_secret_append = function(prompt_bufnr)
144144end
145145
146146A .gh_secret_remove = function (prompt_bufnr )
147- local selection = action_state .get_selected_entry (prompt_bufnr )
147+ local selection = action_state .get_selected_entry ()
148148 actions .close (prompt_bufnr )
149149 if selection .value == " " then
150150 return
@@ -168,7 +168,7 @@ A.gh_secret_set_new = function(prompt_bufnr)
168168end
169169
170170A .gh_secret_set = function (prompt_bufnr )
171- local selection = action_state .get_selected_entry (prompt_bufnr )
171+ local selection = action_state .get_selected_entry ()
172172 actions .close (prompt_bufnr )
173173 local secret_body = vim .fn .input " [SECRET] Enter secret value: "
174174 if secret_body == " " then
@@ -185,7 +185,7 @@ A.gh_pr_v_toggle = function(prompt_bufnr)
185185 else
186186 status .gh_pr_preview = " diff"
187187 end
188- local entry = action_state .get_selected_entry (prompt_bufnr )
188+ local entry = action_state .get_selected_entry ()
189189 action_state .get_current_picker (prompt_bufnr ).previewer :preview (entry , status )
190190end
191191
@@ -211,7 +211,7 @@ A.gh_pr_approve = function(prompt_bufnr)
211211end
212212
213213A .gh_run_web_view = function (prompt_bufnr )
214- local selection = action_state .get_selected_entry (prompt_bufnr )
214+ local selection = action_state .get_selected_entry ()
215215 actions .close (prompt_bufnr )
216216 if selection .id == " " then
217217 return
@@ -220,7 +220,7 @@ A.gh_run_web_view = function(prompt_bufnr)
220220end
221221
222222A .gh_run_rerun = function (prompt_bufnr )
223- local selection = action_state .get_selected_entry (prompt_bufnr )
223+ local selection = action_state .get_selected_entry ()
224224 actions .close (prompt_bufnr )
225225 if selection .id == " " then
226226 return
@@ -230,7 +230,7 @@ A.gh_run_rerun = function(prompt_bufnr)
230230end
231231
232232A .gh_run_cancel = function (prompt_bufnr )
233- local selection = action_state .get_selected_entry (prompt_bufnr )
233+ local selection = action_state .get_selected_entry ()
234234 actions .close (prompt_bufnr )
235235 if selection .id == " " or selection .active == " completed" then
236236 return
241241
242242A .gh_run_view_log = function (opts )
243243 return function (prompt_bufnr )
244- local selection = action_state .get_selected_entry (prompt_bufnr )
244+ local selection = action_state .get_selected_entry ()
245245 actions .close (prompt_bufnr )
246246 if selection .id == " " then
247247 return
0 commit comments