branch: elpa/evil-nerd-commenter
commit 7132693a4cc684dff232839fed45a8a54d832646
Author: Chen Bin <[email protected]>
Commit: Chen Bin <[email protected]>

    fixed test warning
---
 evil-nerd-commenter-tests.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/evil-nerd-commenter-tests.el b/evil-nerd-commenter-tests.el
index 8a013f3937..bd9b130f73 100644
--- a/evil-nerd-commenter-tests.el
+++ b/evil-nerd-commenter-tests.el
@@ -92,7 +92,8 @@
       (should (string= (nth 1 lines) "hello world"))
       (should (string= (nth 2 lines) "</div> */}"))
       ;; move the cursor to the middle of html tag
-      (goto-line 2)
+      (goto-char (point-min))
+      (forward-line 1)
       ;; uncomment whole tag
       (evilnc-comment-or-uncomment-html-tag)
       (setq lines (evilnc-get-lines (point-min) (point-max)))

Reply via email to