Skip to content

Commit

Permalink
fix: substitute.range.word
Browse files Browse the repository at this point in the history
`E5108: Error executing lua: substitute.nvim/lua/substitute/range.lua:120: attempt to index field 'subject' (a nil value)`
  • Loading branch information
IndianBoy42 authored and gbprod committed Jul 20, 2023
1 parent 7412aa5 commit 89dbe55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/substitute/range.lua
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ end

function range.word(options)
options = config.get_range(options or {})
options.subject.motion = "iw"
options.subject = { expand = "<cword>" }
options.complete_word = true
range.operator(options)
end
Expand Down

0 comments on commit 89dbe55

Please sign in to comment.