Skip to content

Commit

Permalink
Fix void variable error: smartparens-strict-mode
Browse files Browse the repository at this point in the history
  • Loading branch information
TheBB authored and syl20bnr committed Nov 27, 2015
1 parent c0de218 commit 1d034c8
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions layers/+distribution/spacemacs-base/packages.el
Original file line number Diff line number Diff line change
Expand Up @@ -381,10 +381,7 @@ Example: (evil-map visual \"<\" \"<gv\")"
(when (configuration-layer/package-usedp 'smartparens)
(defadvice evil-delete-backward-char-and-join
(around spacemacs/evil-delete-backward-char-and-join activate)
(defvar smartparens-strict-mode)
;; defadvice compiles this sexp generating a compiler warning for a
;; free variable reference. The line above fixes this
(if smartparens-strict-mode
(if (bound-and-true-p smartparens-strict-mode)
(call-interactively 'sp-backward-delete-char)
ad-do-it))))))

Expand Down

0 comments on commit 1d034c8

Please sign in to comment.