command: Prevent re-writing settings in case of local option#3178
command: Prevent re-writing settings in case of local option#3178JoeKar merged 2 commits intomicro-editor:masterfrom
Conversation
|
LGTM. I'd also suggest a small refactoring of |
e71dd1f to
020bdd0
Compare
Co-authored-by: Dmitry Maluka <dmitrymaluka@gmail.com>
020bdd0 to
5fff4d3
Compare
|
Upon a fresh look, it's also kinda weird that we check (and "properly handle") a local option inside a function named SetGlobalOptionNative(), as a special case, rather than checking that in the caller function. Or are we checking that both here and in the caller function? (I'm afraid that's what we actually do, and also I'm afraid that we cannot simply remove this redundancy, as it would break something.) But that's just a lyrical note. |
What about renaming So the problem was to export it as "Global" with the reference as with Sh**, sometimes it could be easier... Edit: |
This is a follow-up of #3042.