Hi, lists.

Problem:
call assert_false(1)
then we expected v:errors is
[" line 0: Expected False but got 1"]
but actual value is
[" line 0: Expected False  but got 1"]

diff --git src/eval.c src/eval.c
index 2668f3d..81dc478 100644
--- src/eval.c
+++ src/eval.c
@@ -9183,10 +9183,13 @@ fill_assert_error(gap, opt_msg_tv, exp_str, exp_tv,
got_tv)
  {
     ga_concat(gap, tv2string(exp_tv, &tofree, numbuf, 0));
     vim_free(tofree);
+    ga_concat(gap, (char_u *)" but got ");
  }
  else
+ {
     ga_concat(gap, exp_str);
- ga_concat(gap, (char_u *)" but got ");
+    ga_concat(gap, (char_u *)"but got ");
+ }
  ga_concat(gap, tv2string(got_tv, &tofree, numbuf, 0));
  vim_free(tofree);
     }

Thx,
watiko

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui