From 91767943290f799ce99a935a8ce19f1766508d91 Mon Sep 17 00:00:00 2001
From: Stephen Blott
Date: Wed, 11 Feb 2015 05:47:05 +0000
Subject: Fix error on yank/scroll.
When we exit visual mode with "y"...
"y" is a command for visual mode. Currently it clears the selection.
Because it's executed as a command, scrollIntoView is called after
running the command. Because the selection is cleared, scrollIntoView
found nothing to scroll, and was creating an error.
So we need to check whether there's anything to scroll into view, before
trying to scroll it.
Also fix mis-named file in the tests.
---
tests/dom_tests/dom_tests.html | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
(limited to 'tests')
diff --git a/tests/dom_tests/dom_tests.html b/tests/dom_tests/dom_tests.html
index 33759abd..cbd91bca 100644
--- a/tests/dom_tests/dom_tests.html
+++ b/tests/dom_tests/dom_tests.html
@@ -43,7 +43,7 @@
-
+
--
cgit v1.2.3