(bra, disablePrint)
| 24 | // return cm.getLineHandle(n); |
| 25 | } |
| 26 | function executeBracket(bra, disablePrint) { |
| 27 | bra.attr({ |
| 28 | fill: "#afc" |
| 29 | }).animate({ |
| 30 | fill: "#405560" |
| 31 | }, 500); |
| 32 | |
| 33 | anchorLine = Math.max(cmGetLineNumber(bra.h1), cmGetLineNumber(bra.h2)); |
| 34 | |
| 35 | c = cm.getCursor(); |
| 36 | |
| 37 | fragment = cm.getDoc().getRange({ |
| 38 | line: cmGetLineNumber(bra.h1), |
| 39 | ch: 0 |
| 40 | }, { |
| 41 | line: cmGetLineNumber(bra.h2) + 1, |
| 42 | ch: 0 |
| 43 | }); |
| 44 | |
| 45 | addr = "execution.fragment"; |
| 46 | if (disablePrint) |
| 47 | addr = "execution.fragment.noprint"; |
| 48 | |
| 49 | _field.sendWithReturn(addr, { |
| 50 | box: cm.currentbox, |
| 51 | property: cm.currentproperty, |
| 52 | text: fragment, |
| 53 | lineoffset: cmGetLineNumber(bra.h1), |
| 54 | disabledRanges: "[" + allDisabledBracketRanges() + "]" |
| 55 | }, function (d, e) { |
| 56 | if (d.type == 'error') |
| 57 | appendRemoteOutputToLine(anchorLine, d.line + " : " + d.message, "Field-remoteOutput", "Field-remoteOutput-error", 1); |
| 58 | else |
| 59 | appendRemoteOutputToLine(anchorLine, d.message, "Field-remoteOutput-error", "Field-remoteOutput", 1) |
| 60 | }); |
| 61 | } |
| 62 | function executeBracketLimited(bra, lineLimit) { |
| 63 | bra.attr({ |
| 64 | fill: "#afc" |
no test coverage detected