penguin/AstroJS

Javascript framework for my blog

commit 6af0c542ab48b4ca7079a174bd236ba69bec1d96

author斟酌 鵬兄 <tgckpg@gmail.com>
date2016-04-04T22:56:02Z
subjectMissing commit
commit 6af0c542ab48b4ca7079a174bd236ba69bec1d96
Author: 斟酌 鵬兄 <tgckpg@gmail.com>
Date:   2016-04-04T22:56:02Z

    Missing commit
---
 botanjs/src/Components/Vim/VimArea.js | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/botanjs/src/Components/Vim/VimArea.js b/botanjs/src/Components/Vim/VimArea.js
index f0899af..563cd33 100644
--- a/botanjs/src/Components/Vim/VimArea.js
+++ b/botanjs/src/Components/Vim/VimArea.js
@@ -33,6 +33,7 @@
 	{
 		return function( e )
 		{
+			sender.__active = true;
 			e = e || window.event;
 			if ( e.keyCode ) code = e.keyCode;
 			else if ( e.which ) code = e.which;
@@ -124,7 +125,7 @@
 			else
 			{
 				var t = "";
-				i -= 3;
+				-- i;
 				for( var k = 0; k < i; k ++ ) t += ".";
 				area.value = t;
 
@@ -144,7 +145,7 @@
 
 		var testHeight = function() {
 			area.value += m();
-			l ++;
+			++ l;
 
 			if( oHeight == area.scrollHeight )
 			{
@@ -228,7 +229,8 @@
 		} );
 
 		cfeeder.dispatcher.addEventListener( "VisualUpdate", Update );
-		Update();
+		element.value = "Please wait ...";
+		Cycle.delay( Update, 70 );
 
 		this.__visualUpdate = Update;