mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
Fix void-variable sp-get-thing
When smartparens is disabled.
This commit is contained in:
@ -66,7 +66,9 @@ If `buffer-file-name' isn't set, uses `default-directory'."
|
|||||||
"Delete back to the previous column of whitespace, or as much whitespace as
|
"Delete back to the previous column of whitespace, or as much whitespace as
|
||||||
possible, or just one char if that's not possible."
|
possible, or just one char if that's not possible."
|
||||||
(interactive)
|
(interactive)
|
||||||
(let* ((context (ignore-errors (sp-get-thing)))
|
(let* ((context
|
||||||
|
(if (bound-and-true-p smartparens-mode)
|
||||||
|
(ignore-errors (sp-get-thing))))
|
||||||
(op (plist-get context :op))
|
(op (plist-get context :op))
|
||||||
(cl (plist-get context :cl))
|
(cl (plist-get context :cl))
|
||||||
open-len close-len)
|
open-len close-len)
|
||||||
|
Reference in New Issue
Block a user