Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Strings converted to words in VID styles #3606

Open
dsunanda opened this issue Nov 22, 2018 · 0 comments
Assignees
Labels

Comments

@dsunanda
Copy link

@dsunanda dsunanda commented Nov 22, 2018

Describe the bug

Assigning a string to a VID text style (H1, H2, TEXT, etc) causes words to be added to SYSTEM/WORDS

Bloating SYSTEM/WORDS can have consequences in text-heavy apps - the line below simulates displaying "War and Peace" word at a time in a VID TEXT field - I started it running nearly 10 minutes ago - it is still running, and memory footprint still climbing:

repeat n 500000 [load rejoin ["word-" n]]

To Reproduce

layout [t: h1]  
t/text: "aaa bbb ccc. ddd, eee"
back back back back tail words-of system/words
== [aaa bbb ccc. ddd]   ;; note - not eee, even though that is as good a word as aaa
t/data
== [aaa bbb ccc. ddd]

Expected behavior

Neither DATA field of a VID text style nor SYSTEM/WORDS should be affected by assigning a string.

Things work as expected with other VID styles - such as BOX:

layout [b: box]  
b/text: "fff ggg hhh. iii, jjj"   ;; no extraneous words created.

Platform version(please complete the following information):

Red 0.6.4 for Windows built 22-Nov-2018/0:40:38 commit #755eb94

@dockimbel dockimbel self-assigned this Dec 10, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.