Skip to content

Commit

Permalink
test(ci): change to luajit-openresty
Browse files Browse the repository at this point in the history
  • Loading branch information
glepnir committed Aug 24, 2024
1 parent 4a2f046 commit 7315b32
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,14 @@ jobs:
- name: luajit
uses: leafo/gh-actions-lua@v10
with:
luaVersion: "luajit-2.1.0-beta3"
luaVersion: "luajit-openresty"

- name: luarocks
uses: leafo/gh-actions-luarocks@v4

# - name: run test
# shell: bash
# run: |
# luarocks install luacheck
# luarocks install vusted
# vusted ./test
- name: run test
shell: bash
run: |
luarocks install luacheck
luarocks install vusted
vusted ./test
4 changes: 4 additions & 0 deletions lua/indentmini/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ end
local function out_current_range(row)
return opt.only_current
and cache.range_srow
and cache.range_erow
and (row < cache.range_srow or row > cache.range_erow)
end

Expand All @@ -112,6 +113,9 @@ local function update_cache_range(currow_indent)
end
range_in_snapshot(cache.currow - 1, UP, range_fn)
range_in_snapshot(cache.currow + 1, DOWN, range_fn)
if cache.range_srow and not cache.range_erow then
cache.range_erow = cache.count - 1
end
cache.cur_inlevel = math.floor(currow_indent / cache.step)
end

Expand Down

0 comments on commit 7315b32

Please sign in to comment.