text-buffer
Advanced tools
Comparing version 13.16.0 to 13.16.1-0
@@ -30,4 +30,3 @@ /* eslint-disable no-labels */ | ||
let endBufferRow; | ||
([endBufferRow, endScreenRow] = this.displayLayer.findBoundaryFollowingScreenRow(endScreenRow)) | ||
const endBufferRow = this.displayLayer.translateScreenPositionWithSpatialIndex(Point(endScreenRow, Infinity)).row | ||
@@ -59,2 +58,3 @@ let didSeekDecorationIterator = false | ||
this.screenRow++ | ||
this.bufferColumn = nextHunk.oldEnd.column | ||
hunkIndex++ | ||
@@ -64,2 +64,3 @@ continue screenRowLoop | ||
this.bufferRow = nextHunk.oldEnd.row | ||
this.bufferColumn = nextHunk.oldEnd.column | ||
} | ||
@@ -91,2 +92,8 @@ } | ||
var prevCachedScreenLine = this.displayLayer.cachedScreenLines[this.screenRow - 1] | ||
if (prevCachedScreenLine && prevCachedScreenLine.softWrapIndent >= 0) { | ||
this.inLeadingWhitespace = false | ||
if (prevCachedScreenLine.softWrapIndent > 0) this.emitIndentWhitespace(prevCachedScreenLine.softWrapIndent) | ||
} | ||
// This loop may visit multiple buffer rows if there are folds and | ||
@@ -100,2 +107,5 @@ // multiple screen rows if there are soft wraps. | ||
this.emitSoftWrap(nextHunk) | ||
if (this.screenRow === endScreenRow) { | ||
break screenRowLoop | ||
} | ||
} else { | ||
@@ -256,3 +266,3 @@ this.emitFold(nextHunk, decorationIterator, endBufferRow) | ||
this.closeContainingScopes() | ||
this.emitNewline() | ||
this.emitNewline(nextHunk.newEnd.column) | ||
this.emitIndentWhitespace(nextHunk.newEnd.column) | ||
@@ -289,7 +299,8 @@ } | ||
emitNewline () { | ||
emitNewline (softWrapIndent = -1) { | ||
const screenLine = { | ||
id: nextScreenLineId++, | ||
lineText: this.currentScreenLineText, | ||
tags: this.currentScreenLineTags | ||
tags: this.currentScreenLineTags, | ||
softWrapIndent | ||
} | ||
@@ -296,0 +307,0 @@ this.pushScreenLine(screenLine) |
{ | ||
"name": "text-buffer", | ||
"version": "13.16.0", | ||
"version": "13.16.1-0", | ||
"description": "A container for large mutable strings with annotated regions", | ||
@@ -5,0 +5,0 @@ "main": "./lib/text-buffer", |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
468849
11554
2