diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2024-04-16 07:31:43 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-16 07:31:43 -0700 |
commit | fe4583127f0aaf631b05ad3dff7ebb0126314cf2 (patch) | |
tree | 9c2ff3fd0d9cc3705969bc12f5147f9565fa51e5 /runtime/lua/vim/fs.lua | |
parent | 5cfdaaaeac0f53a621696d8eb6b5a3ba90438c98 (diff) | |
download | rneovim-fe4583127f0aaf631b05ad3dff7ebb0126314cf2.tar.gz rneovim-fe4583127f0aaf631b05ad3dff7ebb0126314cf2.tar.bz2 rneovim-fe4583127f0aaf631b05ad3dff7ebb0126314cf2.zip |
fix: vim.validate() order is not deterministic #28377
Problem:
The order of the validation performed by vim.validate() is
unpredictable.
- harder to write reliable tests.
- confusing UX because validation result might return different errors randomly.
Solution:
Iterate the input using `vim.spairs()`.
Future:
Ideally, the caller could provide an "ordered dict".
Diffstat (limited to 'runtime/lua/vim/fs.lua')
0 files changed, 0 insertions, 0 deletions