Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.

Commit 173e93d

Browse files
Merge pull request #1997 from livecode/bugfix-21418
[21418] Ensure arrays with comma in the key name can be displayed in the variable viewer
2 parents 17feb6e + 955202d commit 173e93d

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

Toolset/palettes/script editor/behaviors/revsevariablespanebehavior.livecodescript

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,7 @@ end flattenVariableList
249249

250250
private on pathToVariableComponents pPath, @rVariableName, @rDimensions
251251
local tCount
252+
set the itemdel to the pathDelimiter of widget "tree" of me
252253
repeat for each item tItem in pPath
253254
add 1 to tCount
254255
if tCount is 1 then
@@ -377,12 +378,9 @@ end visualizationObjectSetValue
377378

378379
private function friendlyNodeReference pNodeReference
379380
local tString
380-
381381
local tVariable, tDimensions
382382
pathToVariableComponents pNodeReference, tVariable, tDimensions
383-
384383
put tVariable into tString
385-
386384
repeat with x = 1 to the number of elements of tDimensions
387385
put "[" & friendlyKey(tDimensions[x]) & "]" after tString
388386
end repeat
@@ -529,4 +527,6 @@ private command setDefaultsAndCallbacks
529527
set the cCallback of tFilter to "filterChanged"
530528
set the cCallbackTarget of tFilter to the long id of me
531529
set the cPlaceholderText of tFilter to "Search variables..."
530+
531+
set the pathdelimiter of widget "tree" of me to numToCodepoint(0)
532532
end setDefaultsAndCallbacks

notes/bugfix-21418.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Ensure arrays with comma in the key name are displayed correctly in the variable viewer window

0 commit comments

Comments
 (0)