Skip to content

Commit f87e118

Browse files
committed
[runmode.node addon] Export countColumn again
1 parent 001e07f commit f87e118

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/addon/runmode/codemirror.node.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
import StringStream from "../../util/StringStream.js"
22
import * as modeMethods from "../../modes.js"
3+
import {countColumn} from "../../util/misc.js"
34

45
// Copy StringStream and mode methods into exports (CodeMirror) object.
56
exports.StringStream = StringStream
7+
exports.countColumn = countColumn
68
for (var exported in modeMethods) exports[exported] = modeMethods[exported]
79

810
// Shim library CodeMirror with the minimal CodeMirror defined above.
@@ -16,4 +18,4 @@ exports.defineMIME("text/plain", "null")
1618
exports.registerHelper = exports.registerGlobalHelper = Math.min
1719
exports.splitLines = function(string) { return string.split(/\r?\n|\r/); }
1820

19-
exports.defaults = { indentUnit: 2 }
21+
exports.defaults = { indentUnit: 2 }

0 commit comments

Comments
 (0)