]> granicus.if.org Git - vim/commitdiff
patch 7.4.1010 v7.4.1010
authorBram Moolenaar <Bram@vim.org>
Thu, 31 Dec 2015 19:46:39 +0000 (20:46 +0100)
committerBram Moolenaar <Bram@vim.org>
Thu, 31 Dec 2015 19:46:39 +0000 (20:46 +0100)
Problem:    Some developers are unhappy while running tests.
Solution:   Add a test and some color.

src/ex_cmds.c
src/testdir/test_assert.vim
src/version.c

index f7cc2576a8c1268954e0b2e94e39654d66928c81..9da5c0956ef6b94880cd0c26e22ff837b19e5fc6 100644 (file)
@@ -7767,7 +7767,10 @@ ex_smile(eap)
            msg_putchar('\n');
        else
            for (n = *p++; n > 0; --n)
-               msg_putchar(*p);
+               if (*p == 'o' || *p == '$')
+                   msg_putchar_attr(*p, hl_attr(HLF_L));
+               else
+                   msg_putchar(*p);
     msg_clr_eos();
 }
 
index 049ce988593fce1a71ad042798ab51e58d9759ac..25337a575e03abc5bdb9c99e826281d6b300dae5 100644 (file)
@@ -17,3 +17,8 @@ func Test_assert_equal()
   let l = [1, 2, 3]
   call assert_equal([1, 2, 3], l)
 endfunc
+
+func Test_user_is_happy()
+  smile
+  sleep 300m
+endfunc
index 6159942bab9556f1e9c2c6e14e3bc74471941eef..59f9bc075e96db081ac4ca2497a68949f3621e3a 100644 (file)
@@ -741,6 +741,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1010,
 /**/
     1009,
 /**/