comparison src/normal.c @ 5428:d06223965468 v7.4.064

updated for version 7.4.064 Problem: When replacing a character in Visual block mode, entering a CR does not cause a repeated line break. Solution: Recognize the situation and repeat the line break. (Christian Brabandt)
author Bram Moolenaar <bram@vim.org>
date Mon, 04 Nov 2013 01:41:17 +0100
parents 6daa78b6b99a
children 6e54d1b3408c
comparison
equal deleted inserted replaced
5427:e18ccf598503 5428:d06223965468
7034 /* Visual mode "r" */ 7034 /* Visual mode "r" */
7035 if (VIsual_active) 7035 if (VIsual_active)
7036 { 7036 {
7037 if (got_int) 7037 if (got_int)
7038 reset_VIsual(); 7038 reset_VIsual();
7039 if (had_ctrl_v)
7040 {
7041 if (cap->nchar == '\r')
7042 cap->nchar = -1;
7043 else if (cap->nchar == '\n')
7044 cap->nchar = -2;
7045 }
7039 nv_operator(cap); 7046 nv_operator(cap);
7040 return; 7047 return;
7041 } 7048 }
7042 #endif 7049 #endif
7043 7050