Mercurial > vim
comparison src/ex_getln.c @ 13831:1f95ec5de238 v8.0.1787
patch 8.0.1787: cannot insert the whole cursor line
commit https://github.com/vim/vim/commit/e2c8d8392684a940cc5608acc73ff47486bd7b92
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue May 1 19:24:03 2018 +0200
patch 8.0.1787: cannot insert the whole cursor line
Problem: Cannot insert the whole cursor line.
Solution: Make CTRL-R CTRL-L work. (Andy Massimino, closes https://github.com/vim/vim/issues/2857)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Tue, 01 May 2018 19:30:06 +0200 |
parents | 530a6b894ae2 |
children | bea665293ea0 |
comparison
equal
deleted
inserted
replaced
13830:8935ed22349c | 13831:1f95ec5de238 |
---|---|
3297 struct cmdline_info save_ccline; | 3297 struct cmdline_info save_ccline; |
3298 | 3298 |
3299 /* check for valid regname; also accept special characters for CTRL-R in | 3299 /* check for valid regname; also accept special characters for CTRL-R in |
3300 * the command line */ | 3300 * the command line */ |
3301 if (regname != Ctrl_F && regname != Ctrl_P && regname != Ctrl_W | 3301 if (regname != Ctrl_F && regname != Ctrl_P && regname != Ctrl_W |
3302 && regname != Ctrl_A && !valid_yank_reg(regname, FALSE)) | 3302 && regname != Ctrl_A && regname != Ctrl_L |
3303 && !valid_yank_reg(regname, FALSE)) | |
3303 return FAIL; | 3304 return FAIL; |
3304 | 3305 |
3305 /* A register containing CTRL-R can cause an endless loop. Allow using | 3306 /* A register containing CTRL-R can cause an endless loop. Allow using |
3306 * CTRL-C to break the loop. */ | 3307 * CTRL-C to break the loop. */ |
3307 line_breakcheck(); | 3308 line_breakcheck(); |