Skip to content

Commit

Permalink
lispy.el (lispy-comment-region): Fix
Browse files Browse the repository at this point in the history
The bug resulted in not everything being commented out.
  • Loading branch information
abo-abo committed Nov 29, 2016
1 parent 9bff37a commit eddb1ad
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lispy.el
Expand Up @@ -4165,9 +4165,10 @@ Unlike `comment-region', ensure a contiguous comment."
(let ((elen (length lispy-outline-header)))
(while (< (point) end)
(insert lispy-outline-header)
(setq end (+ end elen))
(cl-incf end elen)
(unless (eolp)
(insert " "))
(insert " ")
(cl-incf end 1))
(beginning-of-line 2))))

(defun lispy-eval-and-replace ()
Expand Down

0 comments on commit eddb1ad

Please sign in to comment.