diff --git a/botanjs/src/Components/Vim/Actions/SHIFT_LINES.js b/botanjs/src/Components/Vim/Actions/SHIFT_LINES.js index f52ca0a..0e83a39 100644 --- a/botanjs/src/Components/Vim/Actions/SHIFT_LINES.js +++ b/botanjs/src/Components/Vim/Actions/SHIFT_LINES.js @@ -28,8 +28,8 @@ this.__slineNum = Cursor.getLine().lineNum; - this.__lines = e.count; - debug.Info( "Open shift: " + this.__lines + " line(s) below the cursor" ); + this.__lines = e.count - 1; + debug.Info( "Open shift: " + this.__lines + " line(s) from the cursor" ); this.__direction = e.kMap( ">" ) ? 1 : -1; debug.Info( "Direction is: " + ( this.__direction == 1 ? ">" : "<" ) ); @@ -62,7 +62,7 @@ if( 1 < e.count ) { - nline += e.count; + nline += ( e.count - 1 ); } // default: >>, <<, >l,