|
Karsten Hopp |
7f0c37 |
To: vim_dev@googlegroups.com
|
|
Karsten Hopp |
7f0c37 |
Subject: Patch 7.4.187
|
|
Karsten Hopp |
7f0c37 |
Fcc: outbox
|
|
Karsten Hopp |
7f0c37 |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
7f0c37 |
Mime-Version: 1.0
|
|
Karsten Hopp |
7f0c37 |
Content-Type: text/plain; charset=UTF-8
|
|
Karsten Hopp |
7f0c37 |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
7f0c37 |
------------
|
|
Karsten Hopp |
7f0c37 |
|
|
Karsten Hopp |
7f0c37 |
Patch 7.4.187
|
|
Karsten Hopp |
7f0c37 |
Problem: Delete that crosses line break splits multi-byte character.
|
|
Karsten Hopp |
7f0c37 |
Solution: Advance a character instead of a byte. (Cade Foster)
|
|
Karsten Hopp |
7f0c37 |
Files: src/normal.c, src/testdir/test69.in, src/testdir/test69.ok
|
|
Karsten Hopp |
7f0c37 |
|
|
Karsten Hopp |
7f0c37 |
|
|
Karsten Hopp |
7f0c37 |
*** ../vim-7.4.186/src/normal.c 2014-02-11 15:10:38.134111836 +0100
|
|
Karsten Hopp |
7f0c37 |
--- src/normal.c 2014-02-22 23:41:12.472897635 +0100
|
|
Karsten Hopp |
7f0c37 |
***************
|
|
Karsten Hopp |
7f0c37 |
*** 21,27 ****
|
|
Karsten Hopp |
7f0c37 |
static int resel_VIsual_mode = NUL; /* 'v', 'V', or Ctrl-V */
|
|
Karsten Hopp |
7f0c37 |
static linenr_T resel_VIsual_line_count; /* number of lines */
|
|
Karsten Hopp |
7f0c37 |
static colnr_T resel_VIsual_vcol; /* nr of cols or end col */
|
|
Karsten Hopp |
7f0c37 |
! static int VIsual_mode_orig = NUL; /* type of Visual mode, that user entered */
|
|
Karsten Hopp |
7f0c37 |
|
|
Karsten Hopp |
7f0c37 |
static int restart_VIsual_select = 0;
|
|
Karsten Hopp |
7f0c37 |
#endif
|
|
Karsten Hopp |
7f0c37 |
--- 21,27 ----
|
|
Karsten Hopp |
7f0c37 |
static int resel_VIsual_mode = NUL; /* 'v', 'V', or Ctrl-V */
|
|
Karsten Hopp |
7f0c37 |
static linenr_T resel_VIsual_line_count; /* number of lines */
|
|
Karsten Hopp |
7f0c37 |
static colnr_T resel_VIsual_vcol; /* nr of cols or end col */
|
|
Karsten Hopp |
7f0c37 |
! static int VIsual_mode_orig = NUL; /* saved Visual mode */
|
|
Karsten Hopp |
7f0c37 |
|
|
Karsten Hopp |
7f0c37 |
static int restart_VIsual_select = 0;
|
|
Karsten Hopp |
7f0c37 |
#endif
|
|
Karsten Hopp |
7f0c37 |
***************
|
|
Karsten Hopp |
7f0c37 |
*** 6202,6209 ****
|
|
Karsten Hopp |
7f0c37 |
|| cap->oap->op_type == OP_CHANGE)
|
|
Karsten Hopp |
7f0c37 |
&& !lineempty(curwin->w_cursor.lnum))
|
|
Karsten Hopp |
7f0c37 |
{
|
|
Karsten Hopp |
7f0c37 |
! if (*ml_get_cursor() != NUL)
|
|
Karsten Hopp |
7f0c37 |
! ++curwin->w_cursor.col;
|
|
Karsten Hopp |
7f0c37 |
cap->retval |= CA_NO_ADJ_OP_END;
|
|
Karsten Hopp |
7f0c37 |
}
|
|
Karsten Hopp |
7f0c37 |
continue;
|
|
Karsten Hopp |
7f0c37 |
--- 6202,6218 ----
|
|
Karsten Hopp |
7f0c37 |
|| cap->oap->op_type == OP_CHANGE)
|
|
Karsten Hopp |
7f0c37 |
&& !lineempty(curwin->w_cursor.lnum))
|
|
Karsten Hopp |
7f0c37 |
{
|
|
Karsten Hopp |
7f0c37 |
! char_u *cp = ml_get_cursor();
|
|
Karsten Hopp |
7f0c37 |
!
|
|
Karsten Hopp |
7f0c37 |
! if (*cp != NUL)
|
|
Karsten Hopp |
7f0c37 |
! {
|
|
Karsten Hopp |
7f0c37 |
! #ifdef FEAT_MBYTE
|
|
Karsten Hopp |
7f0c37 |
! if (has_mbyte)
|
|
Karsten Hopp |
7f0c37 |
! curwin->w_cursor.col += (*mb_ptr2len)(cp);
|
|
Karsten Hopp |
7f0c37 |
! else
|
|
Karsten Hopp |
7f0c37 |
! #endif
|
|
Karsten Hopp |
7f0c37 |
! ++curwin->w_cursor.col;
|
|
Karsten Hopp |
7f0c37 |
! }
|
|
Karsten Hopp |
7f0c37 |
cap->retval |= CA_NO_ADJ_OP_END;
|
|
Karsten Hopp |
7f0c37 |
}
|
|
Karsten Hopp |
7f0c37 |
continue;
|
|
Karsten Hopp |
7f0c37 |
***************
|
|
Karsten Hopp |
7f0c37 |
*** 9482,9488 ****
|
|
Karsten Hopp |
7f0c37 |
# ifdef FEAT_CLIPBOARD
|
|
Karsten Hopp |
7f0c37 |
adjust_clip_reg(®name);
|
|
Karsten Hopp |
7f0c37 |
# endif
|
|
Karsten Hopp |
7f0c37 |
! if (regname == 0 || regname == '"'
|
|
Karsten Hopp |
7f0c37 |
|| VIM_ISDIGIT(regname) || regname == '-'
|
|
Karsten Hopp |
7f0c37 |
# ifdef FEAT_CLIPBOARD
|
|
Karsten Hopp |
7f0c37 |
|| (clip_unnamed && (regname == '*' || regname == '+'))
|
|
Karsten Hopp |
7f0c37 |
--- 9491,9497 ----
|
|
Karsten Hopp |
7f0c37 |
# ifdef FEAT_CLIPBOARD
|
|
Karsten Hopp |
7f0c37 |
adjust_clip_reg(®name);
|
|
Karsten Hopp |
7f0c37 |
# endif
|
|
Karsten Hopp |
7f0c37 |
! if (regname == 0 || regname == '"'
|
|
Karsten Hopp |
7f0c37 |
|| VIM_ISDIGIT(regname) || regname == '-'
|
|
Karsten Hopp |
7f0c37 |
# ifdef FEAT_CLIPBOARD
|
|
Karsten Hopp |
7f0c37 |
|| (clip_unnamed && (regname == '*' || regname == '+'))
|
|
Karsten Hopp |
7f0c37 |
*** ../vim-7.4.186/src/testdir/test69.in 2013-11-02 23:29:17.000000000 +0100
|
|
Karsten Hopp |
7f0c37 |
--- src/testdir/test69.in 2014-02-22 23:38:50.508897861 +0100
|
|
Karsten Hopp |
7f0c37 |
***************
|
|
Karsten Hopp |
7f0c37 |
*** 155,160 ****
|
|
Karsten Hopp |
7f0c37 |
--- 155,170 ----
|
|
Karsten Hopp |
7f0c37 |
aab
|
|
Karsten Hopp |
7f0c37 |
|
|
Karsten Hopp |
7f0c37 |
STARTTEST
|
|
Karsten Hopp |
7f0c37 |
+ :set whichwrap+=h
|
|
Karsten Hopp |
7f0c37 |
+ /^x
|
|
Karsten Hopp |
7f0c37 |
+ dh
|
|
Karsten Hopp |
7f0c37 |
+ :set whichwrap-=h
|
|
Karsten Hopp |
7f0c37 |
+ ENDTEST
|
|
Karsten Hopp |
7f0c37 |
+
|
|
Karsten Hopp |
7f0c37 |
+ á
|
|
Karsten Hopp |
7f0c37 |
+ x
|
|
Karsten Hopp |
7f0c37 |
+
|
|
Karsten Hopp |
7f0c37 |
+ STARTTEST
|
|
Karsten Hopp |
7f0c37 |
:let a = '.é.' " one char of two bytes
|
|
Karsten Hopp |
7f0c37 |
:let b = '.é.' " normal e with composing char
|
|
Karsten Hopp |
7f0c37 |
/^byteidx
|
|
Karsten Hopp |
7f0c37 |
*** ../vim-7.4.186/src/testdir/test69.ok 2013-11-02 23:29:17.000000000 +0100
|
|
Karsten Hopp |
7f0c37 |
--- src/testdir/test69.ok 2014-02-22 23:38:53.752897856 +0100
|
|
Karsten Hopp |
7f0c37 |
***************
|
|
Karsten Hopp |
7f0c37 |
*** 150,155 ****
|
|
Karsten Hopp |
7f0c37 |
--- 150,158 ----
|
|
Karsten Hopp |
7f0c37 |
aaa
|
|
Karsten Hopp |
7f0c37 |
|
|
Karsten Hopp |
7f0c37 |
|
|
Karsten Hopp |
7f0c37 |
+ áx
|
|
Karsten Hopp |
7f0c37 |
+
|
|
Karsten Hopp |
7f0c37 |
+
|
|
Karsten Hopp |
7f0c37 |
byteidx
|
|
Karsten Hopp |
7f0c37 |
[0, 1, 3, 4, -1]
|
|
Karsten Hopp |
7f0c37 |
[0, 1, 4, 5, -1]
|
|
Karsten Hopp |
7f0c37 |
*** ../vim-7.4.186/src/version.c 2014-02-22 23:03:48.716901208 +0100
|
|
Karsten Hopp |
7f0c37 |
--- src/version.c 2014-02-22 23:30:24.412898667 +0100
|
|
Karsten Hopp |
7f0c37 |
***************
|
|
Karsten Hopp |
7f0c37 |
*** 740,741 ****
|
|
Karsten Hopp |
7f0c37 |
--- 740,743 ----
|
|
Karsten Hopp |
7f0c37 |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
7f0c37 |
+ /**/
|
|
Karsten Hopp |
7f0c37 |
+ 187,
|
|
Karsten Hopp |
7f0c37 |
/**/
|
|
Karsten Hopp |
7f0c37 |
|
|
Karsten Hopp |
7f0c37 |
--
|
|
Karsten Hopp |
7f0c37 |
ARTHUR: Then who is your lord?
|
|
Karsten Hopp |
7f0c37 |
WOMAN: We don't have a lord.
|
|
Karsten Hopp |
7f0c37 |
ARTHUR: What?
|
|
Karsten Hopp |
7f0c37 |
DENNIS: I told you. We're an anarcho-syndicalist commune. We take it in
|
|
Karsten Hopp |
7f0c37 |
turns to act as a sort of executive officer for the week.
|
|
Karsten Hopp |
7f0c37 |
The Quest for the Holy Grail (Monty Python)
|
|
Karsten Hopp |
7f0c37 |
|
|
Karsten Hopp |
7f0c37 |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
7f0c37 |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
7f0c37 |
\\\ an exciting new programming language -- http://www.Zimbu.org ///
|
|
Karsten Hopp |
7f0c37 |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|