* Some thoughts

This commit is contained in:
Bryan Ashby 2015-06-15 15:54:33 -06:00
parent 81dab54f78
commit 683f21cf1a
1 changed files with 9 additions and 1 deletions

View File

@ -232,6 +232,7 @@ function MultiLineEditTextView2(options) {
self.textLines[index].text, col, c);
};
/*
this.editTextAtPosition = function(editAction, text, index, col) {
switch(editAction) {
case 'insert' :
@ -248,6 +249,13 @@ function MultiLineEditTextView2(options) {
break;
}
};
*/
this.removeCharactersInText = function(count, index, col) {
self.textLines[index].text =
self.textLines[index].text.slice(col, count) +
self.textLines[index].text.slice(col + count);
};
this.insertCharactersInText = function(c, index, col) {
self.textLines[index].text = [
@ -269,7 +277,7 @@ function MultiLineEditTextView2(options) {
// formatted array.
//
var nextEolIndex = self.getNextEndOfLineIndex(index);
var wrapped = self.wordWrapSingleLine(self.getContiguousText(index, nextEolIndex), 'tabsIntact')
var wrapped = self.wordWrapSingleLine(self.getContiguousText(index, nextEolIndex), 'tabsIntact');
var newLines = wrapped.wrapped;
/*