Merge remote-tracking branches 'origin/master' and 'vim/master' into Astro

This commit is contained in:
2016-03-29 03:54:22 +08:00
21 changed files with 1038 additions and 302 deletions

View File

@@ -0,0 +1,15 @@
/** @constructor */
Components.Vim.Controls.InputEvent = function(){};
/** @type {Components.Vim.VimArea} */
Components.Vim.Controls.InputEvent.target;
/** @type String */
Components.Vim.Controls.InputEvent.key;
/** @type Boolean */
Components.Vim.Controls.InputEvent.ModKeys;
/** @type Boolean */
Components.Vim.Controls.InputEvent.Escape;
/** @type Number */
Components.Vim.Controls.InputEvent.keyCode;
/** @type Function */
Components.Vim.Controls.InputEvent.kMap;

View File

@@ -0,0 +1,2 @@
/** @constructor */
Components.Vim.Controls = function(){};

View File

@@ -1,6 +1,8 @@
/** @constructor */
Components.Vim.Cursor = function(){};
/** @type {Components.Vim.VimArea} */
Components.Vim.Cursor.Vim;
/** @type {Components.Vim.LineFeeder} */
Components.Vim.Cursor.feeder;
/** @type {Components.Vim.IAction} */
@@ -24,13 +26,23 @@ Components.Vim.Cursor.openAction;
Components.Vim.Cursor.openRunAction;
/** @type Function */
Components.Vim.Cursor.closeAction;
/** @type Function */
Components.Vim.Cursor.suppressEvent;
/** @type Function */
Components.Vim.Cursor.unsuppressEvent;
/** @type {Boolean} */
Components.Vim.Cursor.blink;
/** @type {Boolean} */
Components.Vim.Cursor.pSpace;
/** @type {Array} */
Components.Vim.Cursor.lineBuffers;
/** @type Number */
Components.Vim.Cursor.pX;
/** @type Number */
Components.Vim.Cursor.P;
Components.Vim.Cursor.PStart;
/** @type Number */
Components.Vim.Cursor.PEnd;
/** @type Number */
Components.Vim.Cursor.aX;
/** @type Number */

View File

@@ -7,3 +7,6 @@ Components.Vim.IAction.dispose;
Components.Vim.IAction.handler;
/** @type Function */
Components.Vim.IAction.getMessage;
/** @type Boolean */
Components.Vim.IAction.allowMovement;

View File

@@ -37,6 +37,8 @@ Components.Vim.LineFeeder.panY;
/** @type Number */
Components.Vim.LineFeeder.moreAt;
/** @type Number */
Components.Vim.LineFeeder.linesTotal;
/** @type Number */
Components.Vim.LineFeeder.linesOccupied;
/** @type String */
Components.Vim.LineFeeder.docPos;

View File

@@ -2,8 +2,8 @@
Components.Vim.State.Recorder = function(){};
/** @type Function */
Components.Vim.State.undo;
Components.Vim.State.Recorder.undo;
/** @type Function */
Components.Vim.State.redo;
Components.Vim.State.Recorder.redo;
/** @type Function */
Components.Vim.State.record;
Components.Vim.State.Recorder.record;

View File

@@ -0,0 +1,9 @@
/** @constructor */
Components.Vim.State.Registers = function(){};
/** @type Function */
Components.Vim.State.Registers.change;
/** @type Function */
Components.Vim.State.Registers.yank;
/** @type Function */
Components.Vim.State.Registers.unnamed;

View File

@@ -12,3 +12,5 @@ Components.Vim.VimArea.statusBar;
Components.Vim.VimArea.rows;
/** @type {Number} */
Components.Vim.VimArea.cols;
/** @type {Array} */
Components.Vim.VimArea.Instances;