Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

text-buffer

Package Overview
Dependencies
Maintainers
14
Versions
455
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

text-buffer - npm Package Compare versions

Comparing version 13.16.0 to 13.16.1-0

21

lib/screen-line-builder.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc