Problem: Illegal memory access when using virtual editing.
Solution: Make sure "startspaces" is not negative.
// double-count it.
bd.startspaces = (ce - cs + 1)
- oap->start.coladd;
+ if (bd.startspaces < 0)
+ bd.startspaces = 0;
startcol++;
}
}
set virtualedit=
endfunc
+func Test_edit_special_char()
+ new
+ se ve=all
+ norm a\160
+ sil! exe "norm o00000\<Nul>k<a0s"
+
+ bwipe!
+ set virtualedit=
+endfunc
+
" Tests for pasting at the beginning, end and middle of a tab character
" in virtual edit mode.
func Test_paste_in_tab()
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 1378,
/**/
1377,
/**/