Skip to content

Commit

Permalink
fix(company): only run smartparens logic if there was any candidate r…
Browse files Browse the repository at this point in the history
…eturned
  • Loading branch information
Fuco1 committed Mar 20, 2024
1 parent 9902e5b commit 35cc100
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion smartparens.el
Original file line number Diff line number Diff line change
Expand Up @@ -9711,7 +9711,7 @@ has been created."
(defadvice company--insert-candidate (after sp-company--insert-candidate activate)
"If `smartparens-mode' is active, we check if the completed string
has a pair definition. If so, we insert the closing pair."
(when smartparens-mode
(when (and ad-return-value smartparens-mode)
(sp-insert-pair))
ad-return-value)

Expand Down

0 comments on commit 35cc100

Please sign in to comment.