Description
<localleader>m, i.e. RSendMotion followed by a text object like ip or ap does not send the expected region.
Instead, the prefix (i or a) is silently consumed as the motion, and the second character is used as a normal mode command, e.g. for \mip, p pastes the previous yank.
Additionally, \m0 (send to beginning of line) does not work because 0 is incorrectly read by the count-reading loop.
Both issues come from the M.motion_wrapper() implementation in lua/r/send.lua.
This can be replicated by trying to use \mip or \map in any context when R.nvim is running.
I am opening this issue to reference in the PR
Description
<localleader>m, i.e.RSendMotionfollowed by a text object like ip or ap does not send the expected region.Instead, the prefix (i or a) is silently consumed as the motion, and the second character is used as a normal mode command, e.g. for \mip, p pastes the previous yank.
Additionally, \m0 (send to beginning of line) does not work because 0 is incorrectly read by the count-reading loop.
Both issues come from the
M.motion_wrapper()implementation inlua/r/send.lua.This can be replicated by trying to use \mip or \map in any context when R.nvim is running.
I am opening this issue to reference in the PR