mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-11-10 10:17:11 +03:00
Access value on token
This commit is contained in:
parent
05dc9aad89
commit
06698c880f
@ -654,12 +654,12 @@ class DisplayBuffer extends Model
|
||||
charWidths = @getScopedCharWidths(token.scopes)
|
||||
valueIndex = 0
|
||||
while valueIndex < token.value.length
|
||||
if textUtils.isPairedCharacter(value, valueIndex)
|
||||
char = value.substr(valueIndex, 2)
|
||||
if textUtils.isPairedCharacter(token.value, valueIndex)
|
||||
char = token.value.substr(valueIndex, 2)
|
||||
charLength = 2
|
||||
valueIndex += 2
|
||||
else
|
||||
char = value[valueIndex]
|
||||
char = token.value[valueIndex]
|
||||
charLength = 1
|
||||
valueIndex++
|
||||
|
||||
@ -683,12 +683,12 @@ class DisplayBuffer extends Model
|
||||
charWidths = @getScopedCharWidths(token.scopes)
|
||||
valueIndex = 0
|
||||
while valueIndex < token.value.length
|
||||
if textUtils.isPairedCharacter(value, valueIndex)
|
||||
char = value.substr(valueIndex, 2)
|
||||
if textUtils.isPairedCharacter(token.value, valueIndex)
|
||||
char = token.value.substr(valueIndex, 2)
|
||||
charLength = 2
|
||||
valueIndex += 2
|
||||
else
|
||||
char = value[valueIndex]
|
||||
char = token.value[valueIndex]
|
||||
charLength = 1
|
||||
valueIndex++
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user