From 67ebe7065f4379e531d1a63818c4356826b44046 Mon Sep 17 00:00:00 2001 From: Jez Cope Date: Wed, 31 Jul 2024 08:32:28 +0100 Subject: [PATCH] Save point in comment check during deletion --- symex-transformations-lisp.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/symex-transformations-lisp.el b/symex-transformations-lisp.el index 023a7e15..096bfcaf 100644 --- a/symex-transformations-lisp.el +++ b/symex-transformations-lisp.el @@ -69,8 +69,8 @@ ;; ensure that there isn't a comment on the ;; preceding line before joining lines (unless (condition-case nil - (progn (evil-find-char 1 ?\;) - t) + (save-excursion (evil-find-char 1 ?\;) + t) (error nil)) (symex--join-to-match lispy-right) (symex--adjust-point)))))))