We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4d15710 commit b1bc0f6Copy full SHA for b1bc0f6
1 file changed
smartparens.el
@@ -3260,9 +3260,10 @@ last form; otherwise do nothing."
3260
;; why we need each of these.
3261
(defun sp--save-pre-command-state ()
3262
"Save some of the buffer state before `pre-command-hook'."
3263
- (setq sp-point-inside-string (sp-point-in-string))
3264
- (setq sp-pre-command-point (point))
3265
- (setq sp-buffer-modified-p (buffer-modified-p)))
+ (when smartparens-mode
+ (setq sp-point-inside-string (sp-point-in-string))
+ (setq sp-pre-command-point (point))
3266
+ (setq sp-buffer-modified-p (buffer-modified-p))))
3267
3268
(add-hook 'pre-command-hook 'sp--save-pre-command-state)
3269
0 commit comments