Skip to content

Commit

Permalink
docs(pick): add note that target window is set as current after stop()
Browse files Browse the repository at this point in the history
  • Loading branch information
echasnovski committed Dec 26, 2024
1 parent 84ade0b commit f3531a7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions doc/mini-pick.txt
Original file line number Diff line number Diff line change
Expand Up @@ -834,6 +834,7 @@ Notes:
- If there is currently an active picker, it is properly stopped and new one
is started "soon" in the main event-loop (see |vim.schedule()|).
- Current window at the moment of this function call is treated as "target".
It will be set back as current after |MiniPick.stop()|.
See |MiniPick.get_picker_state()| and |MiniPick.set_picker_target_window()|.

Parameters ~
Expand Down
1 change: 1 addition & 0 deletions lua/mini/pick.lua
Original file line number Diff line number Diff line change
Expand Up @@ -864,6 +864,7 @@ MiniPick.config = {
--- - If there is currently an active picker, it is properly stopped and new one
--- is started "soon" in the main event-loop (see |vim.schedule()|).
--- - Current window at the moment of this function call is treated as "target".
--- It will be set back as current after |MiniPick.stop()|.
--- See |MiniPick.get_picker_state()| and |MiniPick.set_picker_target_window()|.
---
---@param opts table|nil Options. Should have same structure as |MiniPick.config|.
Expand Down

0 comments on commit f3531a7

Please sign in to comment.