adding gotoLine to the remix scroller

pull/1/head
Rob Stupay 7 years ago committed by yann300
parent 52b93b83dd
commit 0a161eb6e5
  1. 5849
      package-lock.json
  2. 1
      src/app.js
  3. 6
      src/app/editor.js
  4. 1
      src/app/files/browser-files.js

5849
package-lock.json generated

File diff suppressed because it is too large Load Diff

@ -753,6 +753,7 @@ var run = function () {
switchToFile(source)
}
this.statementMarker = editor.addMarker(lineColumnPos, 'highlightcode')
editor.gotoLine(lineColumnPos.start.line, lineColumnPos.start.column)
if (lineColumnPos.start.line === lineColumnPos.end.line) {
this.fullLineMarker = editor.addMarker({
start: {

@ -69,6 +69,12 @@ function Editor (editorElement) {
editor.session.setBreakpoint(row, css)
}
this.setPosition = function (line, column, noClip) {
editor.moveCursorTo(line, column)
//var anchor = new ace.Anchor(editor, line, column)
//anchor.setPosition(line, column, noClip)
}
this.editorFontSize = function (incr) {
editor.setFontSize(editor.getFontSize() + incr)
}

@ -176,4 +176,5 @@ function Files (storage) {
}
}
module.exports = Files

Loading…
Cancel
Save