Skip to content

Commit 4976623

Browse files
committed
fix: error when only one action available
1 parent 87c987b commit 4976623

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/rulebook/diagnostic-actions.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ function M.selectRule(operation)
138138

139139
-- autoselect if only one diagnostic
140140
if #diagsAtLine == 1 then
141-
M[operation](diagsAtLine[1])
141+
actions[operation](diagsAtLine[1])
142142
return
143143
end
144144

0 commit comments

Comments
 (0)