Skip to content

Commit

Permalink
fix: don't escape ; in comment or string
Browse files Browse the repository at this point in the history
  • Loading branch information
jcs090218 committed Jun 10, 2024
1 parent f26a973 commit 7666ace
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions vs-edit-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -263,12 +263,13 @@
(interactive)
(vs-edit--delete-region)
(insert ";")
(save-excursion
(forward-char 1)
(when (and (not (bolp))
(vs-edit--current-char-equal-p "}"))
(backward-char 1)
(insert " "))))
(unless (vs-edit--comment-or-string-p)
(save-excursion
(forward-char 1)
(when (and (not (bolp))
(vs-edit--current-char-equal-p "}"))
(backward-char 1)
(insert " ")))))

(defun vs-edit-sharp-key ()
"For programming language that use # as the preprocessor."
Expand Down

0 comments on commit 7666ace

Please sign in to comment.