got it. thanks.
2014年5月27日 上午7:45于 "Harutyun Amirjanyan" <notifications@github.com>写道：

> In app/js/editor.js:
>
> > @@ -952,6 +952,24 @@ define(function(require, exports, module) {
> >                  whitespace.convertIndentation(edit.session);
> >              }
> >          });
> > +
> > +
> > +        command.define("Edit:Insert New Line Down", {
> > +            doc: "Insert a new line down current line",
> > +            exec: function(editor) {
> > +                editor.navigateLineEnd();
> > +                editor.insert("\n");
> > +            }
> > +        });
> > +
> > +        command.define("Edit:Insert New Line Up", {
> > +            doc: "Insert a new line up current line",
> > +            exec: function(editor) {
> > +                editor.navigateLineStart();
> > +                editor.insert("\n");
>
> Hmm, documentation doesn't misses important part that
> it also, keeps selection before the inserted newline.
> https://github.com/ajaxorg/ace/blob/master/lib/ace/editor.js#L1284
>
> it's almost the same but removes the need for naviageUp.
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/zedapp/zed/pull/371/files#r13058876>
> .
>