Problem: Visual block insert breaks a multi-byte character.
Solution: Calculate the position properly. (Yasuhiro Matsumoto)
}
}
+#ifdef FEAT_MBYTE
+ if (has_mbyte && spaces > 0)
+ {
+ /* Avoid starting halfway a multi-byte character. */
+ if (b_insert)
+ {
+ int off = (*mb_head_off)(oldp, oldp + offset + spaces);
+ spaces -= off;
+ count -= off;
+ }
+ else
+ {
+ int off = (*mb_off_next)(oldp, oldp + offset);
+ offset += off;
+ spaces = 0;
+ count = 0;
+ }
+ }
+#endif
+
newp = alloc_check((unsigned)(STRLEN(oldp)) + s_len + count + 1);
if (newp == NULL)
continue;
test104.out test105.out test106.out test107.out \
test_autoformat_join.out \
test_breakindent.out \
- test_listlbr.out \
- test_listlbr_utf8.out \
- test_qf_title.out \
test_changelist.out \
test_eval.out \
test_insertcount.out \
- test_options.out
+ test_listlbr.out \
+ test_listlbr_utf8.out \
+ test_options.out \
+ test_qf_title.out \
+ test_utf8.out
.SUFFIXES: .in .out
test107.out: test107.in
test_autoformat_join.out: test_autoformat_join.in
test_breakindent.out: test_breakindent.in
-test_listlbr.out: test_listlbr.in
-test_listlbr_utf8.out: test_listlbr_utf8.in
-test_qf_title.out: test_qf_title.in
test_changelist.out: test_changelist.in
test_eval.out: test_eval.in
test_insertcount.out: test_insertcount.in
+test_listlbr.out: test_listlbr.in
+test_listlbr_utf8.out: test_listlbr_utf8.in
test_options.out: test_options.in
+test_qf_title.out: test_qf_title.in
+test_utf8.out: test_utf8.in
test105.out test106.out test107.out\
test_autoformat_join.out \
test_breakindent.out \
- test_listlbr.out \
- test_listlbr_utf8.out \
- test_qf_title.out \
test_changelist.out \
test_eval.out \
test_insertcount.out \
- test_options.out
+ test_listlbr.out \
+ test_listlbr_utf8.out \
+ test_options.out \
+ test_qf_title.out \
+ test_utf8.out
SCRIPTS32 = test50.out test70.out
test105.out test106.out test107.out \
test_autoformat_join.out \
test_breakindent.out \
- test_listlbr.out \
- test_listlbr_utf8.out \
- test_qf_title.out \
test_changelist.out \
test_eval.out \
test_insertcount.out \
- test_options.out
+ test_listlbr.out \
+ test_listlbr_utf8.out \
+ test_options.out \
+ test_qf_title.out \
+ test_utf8.out
SCRIPTS32 = test50.out test70.out
test100.out test101.out test102.out test103.out test104.out \
test105.out test106.out test107.out \
test_autoformat_join.out \
+ test_breakindent.out \
test_changelist.out \
test_eval.out \
test_insertcount.out \
- test_breakindent.out \
test_listlbr.out \
test_listlbr_utf8.out \
+ test_options.out \
test_qf_title.out \
- test_options.out
+ test_utf8.out
.SUFFIXES: .in .out
# Authors: Zoltan Arpadffy, <arpadffy@polarhome.com>
# Sandor Kopanyi, <sandor.kopanyi@mailbox.hu>
#
-# Last change: 2014 Jul 30
+# Last change: 2014 Aug 16
#
# This has been tested on VMS 6.2 to 8.3 on DEC Alpha, VAX and IA64.
# Edit the lines in the Configuration section below to select.
test105.out test106.out test107.out \
test_autoformat_join.out \
test_breakindent.out \
- test_listlbr.out \
- test_listlbr_utf8.out \
- test_qf_title.out \
test_changelist.out \
test_eval.out \
test_insertcount.out \
- test_options.out
+ test_listlbr.out \
+ test_listlbr_utf8.out \
+ test_options.out \
+ test_qf_title.out \
+ test_utf8.out
# Known problems:
# test17: ?
test104.out test105.out test106.out test107.out \
test_autoformat_join.out \
test_breakindent.out \
- test_listlbr.out \
- test_listlbr_utf8.out \
- test_qf_title.out \
test_changelist.out \
test_eval.out \
test_insertcount.out \
- test_options.out
+ test_listlbr.out \
+ test_listlbr_utf8.out \
+ test_options.out \
+ test_qf_title.out \
+ test_utf8.out
SCRIPTS_GUI = test16.out
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 408,
/**/
407,
/**/