* update comments
This commit is contained in:
parent
3e0926b87a
commit
7095f388f8
|
@ -296,7 +296,7 @@ function MultiLineEditTextView2(options) {
|
||||||
|
|
||||||
self.redrawRows(self.cursorPos.row, self.dimens.height);
|
self.redrawRows(self.cursorPos.row, self.dimens.height);
|
||||||
|
|
||||||
if(0 === self.cursorPos.col) {
|
if(self.cursorPos.col < 0) {
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
var absPos = self.getAbsolutePosition(self.cursorPos.row, self.cursorPos.col);
|
var absPos = self.getAbsolutePosition(self.cursorPos.row, self.cursorPos.col);
|
||||||
|
@ -352,6 +352,10 @@ function MultiLineEditTextView2(options) {
|
||||||
[ index, (nextEolIndex - index) + 1 ].concat(newLines));
|
[ index, (nextEolIndex - index) + 1 ].concat(newLines));
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
//
|
||||||
|
// Update word wrapping and |cursorOffset| if the cursor
|
||||||
|
// was within the bounds of the wrapped text
|
||||||
|
//
|
||||||
var lastCol = self.cursorPos.col - c.length;
|
var lastCol = self.cursorPos.col - c.length;
|
||||||
var firstWrapRange = self.updateTextWordWrap(index);
|
var firstWrapRange = self.updateTextWordWrap(index);
|
||||||
if(lastCol >= firstWrapRange.start && lastCol <= firstWrapRange.end) {
|
if(lastCol >= firstWrapRange.start && lastCol <= firstWrapRange.end) {
|
||||||
|
|
Loading…
Reference in New Issue