Problem: White space before " -Ntabmove" causes problems.
Solution: Skip whitespace. (Ozaki Kiichi, closes #3841)
else
{
tab_number = eap->line2;
- if (!unaccept_arg0 && **eap->cmdlinep == '-')
+ if (!unaccept_arg0 && *skipwhite(*eap->cmdlinep) == '-')
{
--tab_number;
if (tab_number < unaccept_arg0)
call assert_equal(4, tabpagenr())
7tabmove 5
call assert_equal(5, tabpagenr())
+ -tabmove
+ call assert_equal(4, tabpagenr())
+ +tabmove
+ call assert_equal(5, tabpagenr())
+ -2tabmove
+ call assert_equal(3, tabpagenr())
+ +3tabmove
+ call assert_equal(6, tabpagenr())
" The following are a no-op
norm! 2gt
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 794,
/**/
793,
/**/