Fix void variable error: smartparens-strict-mode
This commit is contained in:
parent
42d1135438
commit
7adca30aeb
|
@ -387,10 +387,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)))
|
||||
|
||||
|
|
Loading…
Reference in a new issue