prevent vim ex commandline from obscuring search results (fixes #2384)
This commit is contained in:
parent
101656ea5c
commit
1b1006ac1d
1 changed files with 6 additions and 2 deletions
|
|
@ -489,8 +489,12 @@ define(function(require, exports, module) {
|
|||
};
|
||||
this.scrollInfo = function() { return 0; };
|
||||
this.scrollIntoView = function(pos, margin) {
|
||||
if (pos)
|
||||
this.ace.renderer.scrollCursorIntoView(toAcePos(pos), null, margin);
|
||||
if (pos) {
|
||||
var renderer = this.ace.renderer;
|
||||
var viewMargin = { "top": 0, "bottom": margin };
|
||||
renderer.scrollCursorIntoView(toAcePos(pos),
|
||||
(renderer.lineHeight * 2) / renderer.$size.scrollerHeight, viewMargin);
|
||||
}
|
||||
};
|
||||
this.getLine = function(row) { return this.ace.session.getLine(row) };
|
||||
this.getRange = function(s, e) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue