Skip to content

Commit

Permalink
Merge pull request #79 from monaqa/fix-fraction-nil_error
Browse files Browse the repository at this point in the history
fix: check non-nil before accessing as integer in decimal_fraction
  • Loading branch information
monaqa committed Oct 5, 2023
2 parents 611cf5e + 5fa5af0 commit 019bbe9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/dial/augend/decimal_fraction.lua
Expand Up @@ -59,7 +59,7 @@ function AugendDecimalFraction:find(line, cursor)
end
idx = idx_frac_end + 1
-- decimal fraction before the cursor
if idx_frac_end < cursor then
if cursor ~= nil and idx_frac_end < cursor then
return -- continue while loop
end

Expand Down

0 comments on commit 019bbe9

Please sign in to comment.