forked from Botanical/BotanJS
Migrate old externs 9/x
This commit is contained in:
@@ -4,7 +4,11 @@
|
||||
/** @type {System.Debug} */
|
||||
var debug = __import( "System.Debug" );
|
||||
|
||||
/** @type {Components.Vim.IAction} */
|
||||
/**
|
||||
* @constructor
|
||||
* @implements {Components.Vim.IAction}
|
||||
* @param {Components.Vim.Cursor} Cursor
|
||||
*/
|
||||
var PRINT = function( Cursor )
|
||||
{
|
||||
/** @type {Components.Vim.Cursor} */
|
||||
@@ -13,6 +17,8 @@
|
||||
};
|
||||
|
||||
PRINT.prototype.dispose = function() { };
|
||||
PRINT.prototype.allowMovement = false;
|
||||
|
||||
PRINT.prototype.handler = function( e, args, range )
|
||||
{
|
||||
e.preventDefault();
|
||||
@@ -30,7 +36,7 @@
|
||||
break;
|
||||
case "":
|
||||
default:
|
||||
var lineNum = parseInt( range ) - 1;
|
||||
var lineNum = parseInt( range, 10 ) - 1;
|
||||
if( lineNum )
|
||||
{
|
||||
this.__cursor.gotoLine( 0 < lineNum ? lineNum : 0 );
|
||||
|
||||
Reference in New Issue
Block a user