mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-07-25 20:18:25 +02:00
* update comments
This commit is contained in:
parent
3e0926b87a
commit
7095f388f8
1 changed files with 6 additions and 2 deletions
|
@ -296,8 +296,8 @@ function MultiLineEditTextView2(options) {
|
|||
|
||||
self.redrawRows(self.cursorPos.row, self.dimens.height);
|
||||
|
||||
if(0 === self.cursorPos.col) {
|
||||
|
||||
if(self.cursorPos.col < 0) {
|
||||
|
||||
} else {
|
||||
var absPos = self.getAbsolutePosition(self.cursorPos.row, self.cursorPos.col);
|
||||
self.client.term.write(ansi.goto(absPos.row, absPos.col));
|
||||
|
@ -352,6 +352,10 @@ function MultiLineEditTextView2(options) {
|
|||
[ 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 firstWrapRange = self.updateTextWordWrap(index);
|
||||
if(lastCol >= firstWrapRange.start && lastCol <= firstWrapRange.end) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue