mirror of
https://github.com/atom/atom.git
synced 2026-02-18 18:34:21 -05:00
Default soft wrap to millionth column
This is because peer.js cannot encode Infinity but it should be ideally controlled via a boolean flag instead of column number.
This commit is contained in:
@@ -10,6 +10,8 @@ Token = require 'token'
|
||||
DisplayBufferMarker = require 'display-buffer-marker'
|
||||
Subscriber = require 'subscriber'
|
||||
|
||||
DefaultSoftWrapColumn = 1000000
|
||||
|
||||
module.exports =
|
||||
class DisplayBuffer
|
||||
screenLines: null
|
||||
@@ -38,7 +40,7 @@ class DisplayBuffer
|
||||
deserializer: @constructor.name
|
||||
id: @id
|
||||
tokenizedBuffer: @tokenizedBuffer.getState()
|
||||
softWrapColumn: softWrapColumn ? Infinity
|
||||
softWrapColumn: softWrapColumn ? DefaultSoftWrapColumn
|
||||
|
||||
@markers = {}
|
||||
@foldsByMarkerId = {}
|
||||
|
||||
Reference in New Issue
Block a user