penguin/AstroJS

Javascript framework for my blog

commit 76243f24405a62975304a3d81a5cb9044db11f3e

author斟酌 鵬兄 <tgckpg@gmail.com>
date2016-04-04T23:24:23Z
subjectx also is removing last character...
commit 76243f24405a62975304a3d81a5cb9044db11f3e
Author: 斟酌 鵬兄 <tgckpg@gmail.com>
Date:   2016-04-04T23:24:23Z

    x also is removing last character...
---
 botanjs/src/Components/Vim/Actions/DELETE.js | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/botanjs/src/Components/Vim/Actions/DELETE.js b/botanjs/src/Components/Vim/Actions/DELETE.js
index 86922c1..a5a7f6c 100644
--- a/botanjs/src/Components/Vim/Actions/DELETE.js
+++ b/botanjs/src/Components/Vim/Actions/DELETE.js
@@ -158,8 +158,7 @@
 
 		this.__nline = occurence( removed, "\n" );
 
-		feeder.content = c.substring( 0, s ) + c.substring( e + 1 );
-		if( feeder.content === "" ) feeder.content = "\n";
+		feeder.content = c.substring( 0, s ) + c.substring( e + 1 ) + "\n";
 
 		// Try to keep the original panning if possible
 		feeder.pan( undefined