summaryrefslogtreecommitdiffstatshomepage
path: root/runtime/lua/vim/_editor.lua
diff options
context:
space:
mode:
authorEvgeni Chasnovski <evgeni.chasnovski@gmail.com>2025-06-30 16:08:37 +0300
committerEvgeni Chasnovski <evgeni.chasnovski@gmail.com>2025-06-30 20:59:12 +0300
commit649ff924d990003e9d9338d964a206e7c7a5c144 (patch)
treec101ea026e27dd8376a238d87631805593657237 /runtime/lua/vim/_editor.lua
parentaeb8bca12ddfe741569df622ef0cbc90211a6064 (diff)
fix(vim.version): improve construction of '<=a.b.c' and '>a.b.c' ranges
Problem: `vim.version.range('<=a.b.c')` is not precise when it comes to its right hand side. This is due to version ranges using exclusive right hand side. While `vim.version.range('>a.b.c')` is not precise when it comes to its left hand side because left hand sides are inclusive. Solution: For '>=a.b.c' increase `to` from 'a.b.c' to the smallest reasonable version that is bigger than 'a.b.c'. For '<a.b.c' do the same for `from`. More proper solution is an explicit control over inclusivity of version range sides, but it has more side effects and requires design decisions.
Diffstat (limited to 'runtime/lua/vim/_editor.lua')
0 files changed, 0 insertions, 0 deletions