summaryrefslogtreecommitdiff
path: root/README.rst
diff options
context:
space:
mode:
authorUlf Magnusson <ulfalizer@gmail.com>2018-02-08 06:03:44 +0100
committerUlf Magnusson <ulfalizer@gmail.com>2018-02-08 10:14:48 +0100
commite8b4ecb6ff6ccc1c7be0818314fbccda2ef2b2ee (patch)
tree6ad3e42e6202bd88228613e8eb05745237c4eac1 /README.rst
parent2abc0bb4c770723417e725dd1b947a494ac649b4 (diff)
Don't special-case user_value for choice symbols set to y
Previously, setting a choice symbol to y would only update user_selection on the parent choice and not the symbol's own user_value. Now both are updated. The point of the old behavior was to remember the m mode selections of a choice when it was switched back and forth between m and y mode, which was a feature I thought the C implementation had. On closer inspection, the C implementation never had that feature, though it might appear like it if you only make "lucky" changes (if you never select any symbols in y mode that were n in m mode). The new behavior is simpler and easier to understand: Symbol.user_value now always matches the value assigned in a .config file or via set_value(), provided the value was well-formed. This might avoid some special-casing in scripts too. The loss in usability is pretty minimal.
Diffstat (limited to 'README.rst')
0 files changed, 0 insertions, 0 deletions