To:
[email protected]
Subject: Patch 7.4b.009
Fcc: outbox
From: Bram Moolenaar <
[email protected]>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
------------
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 ///