From 2c7527bbcd2b3c62d680e75975741ad250c06153 Mon Sep 17 00:00:00 2001 From: Bryan Ashby Date: Tue, 16 Jun 2015 16:30:23 -0600 Subject: [PATCH] * Some notes on deleting tabs --- core/multi_line_edit_text_view2.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/core/multi_line_edit_text_view2.js b/core/multi_line_edit_text_view2.js index ad67dc2b..c0dc1608 100644 --- a/core/multi_line_edit_text_view2.js +++ b/core/multi_line_edit_text_view2.js @@ -195,7 +195,7 @@ function MultiLineEditTextView2(options) { lines = self.textLines.slice(startIndex, endIndex + 1); // "slice extracts up to but not including end." } return lines; - } + }; this.getOutputText = function(startIndex, endIndex, includeEol) { var lines = self.getTextLines(startIndex, endIndex); @@ -221,7 +221,7 @@ function MultiLineEditTextView2(options) { for(var i = 0; i < lines.length; ++i) { text += lines[i].text; if(includeEol && lines[i].eol) { - text += '\n' + text += '\n'; } } return text; @@ -710,6 +710,11 @@ function MultiLineEditTextView2(options) { }; this.keyPressBackspace = function() { + var count; + if('\t' === self.getCharacter(self.cursorPos.col)) { + // :TODO: Need to remove tabs... + } + self.removeCharactersFromText( self.getTextLinesIndex(), self.cursorPos.col,