* A lot more work on cursor movement/etc. for MultiLineEditTextView2

* Start mostly placeholder stuff for regular key press / insertion of text
This commit is contained in:
Bryan Ashby 2015-06-03 22:00:33 -06:00
parent 9be258dab5
commit e401e4a1a0
3 changed files with 88 additions and 16 deletions

View file

@ -6,6 +6,7 @@ var miscUtil = require('./misc_util.js');
exports.stylizeString = stylizeString;
exports.pad = pad;
exports.replaceAt = replaceAt;
// :TODO: create Unicode verison of this
var VOWELS = [ 'a', 'e', 'i', 'o', 'u' ];
@ -145,3 +146,7 @@ function pad(s, len, padChar, dir, stringSGR, padSGR) {
return stringSGR + s;
}
function replaceAt(s, n, t) {
return s.substring(0, n) + t + s.substring(n + 1);
}