comparison src/ex_getln.c @ 7336:4c5f53a60543 v7.4.973

commit https://github.com/vim/vim/commit/6f62fed349bf829da2adb02619dc9acba13c8ab6 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Dec 17 14:04:24 2015 +0100 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.
author Christian Brabandt <cb@256bit.org>
date Thu, 17 Dec 2015 14:15:04 +0100
parents 99476f1aaacd
children 1886f2863437
comparison
equal deleted inserted replaced
7335:51ac3ac08833 7336:4c5f53a60543
3066 } 3066 }
3067 } 3067 }
3068 #endif 3068 #endif
3069 3069
3070 /* 3070 /*
3071 * paste a yank register into the command line. 3071 * Paste a yank register into the command line.
3072 * used by CTRL-R command in command-line mode 3072 * Used by CTRL-R command in command-line mode.
3073 * insert_reg() can't be used here, because special characters from the 3073 * insert_reg() can't be used here, because special characters from the
3074 * register contents will be interpreted as commands. 3074 * register contents will be interpreted as commands.
3075 * 3075 *
3076 * return FAIL for failure, OK otherwise 3076 * Return FAIL for failure, OK otherwise.
3077 */ 3077 */
3078 static int 3078 static int
3079 cmdline_paste(regname, literally, remcr) 3079 cmdline_paste(regname, literally, remcr)
3080 int regname; 3080 int regname;
3081 int literally; /* Insert text literally instead of "as typed" */ 3081 int literally; /* Insert text literally instead of "as typed" */