Merge remote-tracking branch 'vim/master' into Astro

This commit is contained in:
斟酌 鵬兄 2017-03-02 18:28:09 +08:00
commit 28a15f031e
5 changed files with 14 additions and 6 deletions

View File

@ -23,7 +23,7 @@
this.__startX = Cursor.aPos;
this.__panY = this.__cursor.feeder.panY;
this.__cMode = e.kMap( "c" );
this.__cMode = e && e.kMap( "c" );
this.__cMode_c = false;
this.__enterEvent = e;

View File

@ -35,7 +35,14 @@
var cur = this.__cursor;
var Vim = cur.Vim;
if( cur.rec.changed )
var forceQuit = p.join( "" ).trim();
if( forceQuit && forceQuit[0] == "!" && 1 < forceQuit.length )
{
this.__msg = VimError( "E488" );
return false;
}
if( !forceQuit && cur.rec.changed )
{
var msg = VimError( "E37" );

View File

@ -13,11 +13,12 @@
var LineOffset = function( buffs, l )
{
/** @type {Components.Vim.LineBuffer} */
var offset = 0;
LineLoop:
for( var i = 0, line = buffs[0];
for( var i = 0,
/** @type {Components.Vim.LineBuffer} */
line = buffs[0];
line && i < l; i ++ )
{
while( line )

View File

@ -83,7 +83,6 @@
, new EventKey( "Blur", function() { _self.__active = false; } )
];
if( detectScreenSize )
{
var val = element.value;

View File

@ -1,4 +1,4 @@
var VIMRE_VERSION = "1.0.0";
var VIMRE_VERSION = "1.0.1";
(function(){
var ns = __namespace( "Components.Vim" );
@ -43,6 +43,7 @@ var VIMRE_VERSION = "1.0.0";
, "E481": "No range allowed"
, "E492": "Not an editor command: %1"
, "E486": "Pattern not found: %1"
, "E488": "Trailing characters"
// EXtended Errors
, "EX1": "Pattern Error( %1 )"