Skip to content

Commit

Permalink
fix: add additional validation for a cursor table
Browse files Browse the repository at this point in the history
  • Loading branch information
rasulomaroff committed Jul 19, 2023
1 parent a3328f9 commit cfb7d9e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lua/cursor/cursor.lua
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,9 @@ function M.extract(cursor, triggerable)
end

cursor_string = cursor_string .. M.extract_blink(cursor.blink)
elseif not has_form then
error 'You did not specify nor blink nor a cursor form'
return ''
end

if has_form and cursor.replace then
Expand Down

0 comments on commit cfb7d9e

Please sign in to comment.