Skip to content

Commit

Permalink
Use character-offset instead of forward-char
Browse files Browse the repository at this point in the history
  • Loading branch information
naryl committed Oct 9, 2024
1 parent fd74e8a commit c31bb25
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions extensions/paredit-mode/paredit-mode.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -316,15 +316,15 @@ link : http://www.daregada.sakuraweb.com/paredit_tutorial_ja.html
(with-point ((from p))
(skip-whitespace-backward from)
(delete-between-points from p)))
(forward-char))
(character-offset (current-point) 1))
((ignore-errors (or (scan-lists p 1 1)) t)
(with-point ((new-p p))
(character-offset new-p -1)
(move-point (current-point) new-p)
(with-point ((p new-p))
(skip-whitespace-backward p)
(delete-between-points p new-p)
(forward-char))))
(character-offset (current-point) 1))))
(t
(insert-character p c)))))

Expand Down

0 comments on commit c31bb25

Please sign in to comment.