Patch 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)
Files: src/mark.c
*** ../vim-7.4b.008/src/mark.c 2013-02-06 12:29:46.000000000 +0100
--- src/mark.c 2013-08-02 17:22:10.000000000 +0200
***************
*** 99,112 ****
}
#ifdef FEAT_VISUAL
! if (c == '<')
{
! curbuf->b_visual.vi_start = *pos;
! return OK;
! }
! if (c == '>')
! {
! curbuf->b_visual.vi_end = *pos;
return OK;
}
#endif
--- 99,113 ----
}
#ifdef FEAT_VISUAL
! if (c == '<' || c == '>')
{
! 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
*** ../vim-7.4b.008/src/version.c 2013-08-02 17:08:08.000000000 +0200
--- src/version.c 2013-08-02 17:12:19.000000000 +0200
***************
*** 729,730 ****
--- 729,732 ----
{ /* Add new patch number below this line */
+ /**/
+ 9,
/**/
--
Portable Computer: A device invented to force businessmen
to work at home, on vacation, and on business trips.
/// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.