changeset 7412:bc5de65e499a v7.4.1010

commit https://github.com/vim/vim/commit/2d820808cda15b3ad9fe674393d1f1e997453d9e Author: Bram Moolenaar <Bram@vim.org> Date: Thu Dec 31 20:46:39 2015 +0100 patch 7.4.1010 Problem: Some developers are unhappy while running tests. Solution: Add a test and some color.
author Christian Brabandt <cb@256bit.org>
date Thu, 31 Dec 2015 21:00:04 +0100
parents a7f321e32883
children e4a99bffa1ab
files src/ex_cmds.c src/testdir/test_assert.vim src/version.c
diffstat 3 files changed, 11 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/ex_cmds.c
+++ b/src/ex_cmds.c
@@ -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();
 }
 
--- a/src/testdir/test_assert.vim
+++ b/src/testdir/test_assert.vim
@@ -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
--- a/src/version.c
+++ b/src/version.c
@@ -742,6 +742,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    1010,
+/**/
     1009,
 /**/
     1008,