Fix unhandled case in laas-wrap-previous-object

start might be nil (if there is a space to the left for example) and this causes
this function to insert text to the right then error.
This commit is contained in:
Justin Burkett 2023-03-31 13:34:43 -04:00 committed by tecosaur
parent 7f4044918c
commit a00f0aba23
1 changed files with 1 additions and 1 deletions

View File

@ -145,7 +145,7 @@ and is expected to return a string or cons."
(t
(message "Wrong type of `tex-cmd' given to `laas-wrap-previous-object'.")))
;; wrap
(when left
(when (and left start)
(insert right)
(save-excursion
(goto-char start)