mirror of
https://github.com/vim/vim.git
synced 2025-09-26 04:04:07 -04:00
patch 7.4.973
Problem: When pasting on the command line line breaks result in literal <CR> characters. This makes pasting a long file name difficult. Solution: Skip the characters.
This commit is contained in:
@@ -3068,12 +3068,12 @@ restore_cmdline_alloc(p)
|
||||
#endif
|
||||
|
||||
/*
|
||||
* paste a yank register into the command line.
|
||||
* used by CTRL-R command in command-line mode
|
||||
* Paste a yank register into the command line.
|
||||
* Used by CTRL-R command in command-line mode.
|
||||
* insert_reg() can't be used here, because special characters from the
|
||||
* register contents will be interpreted as commands.
|
||||
*
|
||||
* return FAIL for failure, OK otherwise
|
||||
* Return FAIL for failure, OK otherwise.
|
||||
*/
|
||||
static int
|
||||
cmdline_paste(regname, literally, remcr)
|
||||
|
Reference in New Issue
Block a user