From 76243f24405a62975304a3d81a5cb9044db11f3e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=96=9F=E9=85=8C=20=E9=B5=AC=E5=85=84?= Date: Tue, 5 Apr 2016 07:24:23 +0800 Subject: [PATCH] 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