Fix duplicate backends in +lookup prompts
When running a +lookup/* command with the prefix arg, you are prompted for which backend to use, which could contain duplicates if the current buffer has no local backends.
This commit is contained in:
parent
19bfb1285d
commit
daee52d358
1 changed files with 3 additions and 2 deletions
|
@ -137,8 +137,9 @@ This can be passed nil as its second argument to unset handlers for MODES. e.g.
|
|||
(if-let*
|
||||
((handler (intern-soft
|
||||
(completing-read "Select lookup handler: "
|
||||
(delete-dups
|
||||
(remq t (append (symbol-value handlers)
|
||||
(default-value handlers)))
|
||||
(default-value handlers))))
|
||||
nil t))))
|
||||
(+lookup--run-handlers handler identifier origin)
|
||||
(user-error "No lookup handler selected"))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue