mirror of
https://github.com/vim/vim.git
synced 2025-07-26 11:04:33 -04:00
updated for version 7.4b.009
Problem: When setting the Visual area manually and 'selection' is exclusive, a yank includes one character too much. (Ingo Karkat) Solution: Default the Visual operation to "v". (Christian Brabandt)
This commit is contained in:
parent
4008f4fb08
commit
bc88a27537
15
src/mark.c
15
src/mark.c
@ -99,14 +99,15 @@ setmark_pos(c, pos, fnum)
|
||||
}
|
||||
|
||||
#ifdef FEAT_VISUAL
|
||||
if (c == '<')
|
||||
if (c == '<' || c == '>')
|
||||
{
|
||||
curbuf->b_visual.vi_start = *pos;
|
||||
return OK;
|
||||
}
|
||||
if (c == '>')
|
||||
{
|
||||
curbuf->b_visual.vi_end = *pos;
|
||||
if (c == '<')
|
||||
curbuf->b_visual.vi_start = *pos;
|
||||
else
|
||||
curbuf->b_visual.vi_end = *pos;
|
||||
if (curbuf->b_visual.vi_mode == NUL)
|
||||
/* Visual_mode has not yet been set, use a sane default. */
|
||||
curbuf->b_visual.vi_mode = 'v';
|
||||
return OK;
|
||||
}
|
||||
#endif
|
||||
|
@ -727,6 +727,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
9,
|
||||
/**/
|
||||
8,
|
||||
/**/
|
||||
|
Loading…
x
Reference in New Issue
Block a user