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