neovim/test/functional/cmdline
Justin M. Keyes baab49ee89 cmdline: CTRL-R: Omit trailing <CR>.
The "technically correct" interpretation is to execute the first line
that is seen (and this is what happens on middle-click paste in Vim).
^M is only intended to "defuse" the newline, so the user can review it.

The parent commit changed the behavior to insert <Space> between lines,
but that's a higher-risk change: it is arguably possible that some user
*wants* the literal ^M chars when e.g. assigning to a register:
    :let @a='<C-R>b'

To avoid that risk, keep the old behavior and only omit the last ^M.
This makes `yy:<C-R>0` nicer at no cost.
2017-02-18 23:24:35 +01:00
..
ctrl_r_spec.lua cmdline: CTRL-R: Omit trailing <CR>. 2017-02-18 23:24:35 +01:00
history_spec.lua cmdline: CTRL-R: <Space> instead of CR between lines. 2017-02-18 14:49:05 +01:00