branch: elpa/evil-nerd-commenter
commit 49efc538f5b6a2b6b335351ddef72d86da06d929
Author: Samuele Favazza <[email protected]>
Commit: your name <your email>
fix: do not overshoot [multi]line comment boundaries
---
evil-nerd-commenter-operator.el | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/evil-nerd-commenter-operator.el b/evil-nerd-commenter-operator.el
index b0b814a1b4..15739a15ad 100644
--- a/evil-nerd-commenter-operator.el
+++ b/evil-nerd-commenter-operator.el
@@ -260,10 +260,10 @@ Or expand the region to contain whole lines."
(while (not (evilnc-pure-comment-p e))
(setq e (- e 1)))
- (if (< b e) (setq rlt (cons b (1+ e)))))
+ (if (< b e) (setq rlt (cons b e))))
(t
;; multi-line comment
- (setq rlt (cons b (1+ e)))))
+ (setq rlt (cons b e))))
rlt))
(defun evilnc-adjusted-comment-end (b e)