From 79ba4bcdc04433416e92d2835438a4e6ad2c9b65 Mon Sep 17 00:00:00 2001 From: Bjorn Winckler Date: Thu, 21 Jul 2011 22:14:24 +0200 Subject: [PATCH] Addendum to emergency fix Ensure vim_message() outputs an empty message when the Ruby string has length 0. Failing to do this will cause the message area not to clear when it should. --- src/if_ruby.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/if_ruby.c b/src/if_ruby.c index 6524077714..656da08d9a 100644 --- a/src/if_ruby.c +++ b/src/if_ruby.c @@ -773,6 +773,10 @@ static VALUE vim_message(VALUE self UNUSED, VALUE str) if (p) *p = '\0'; MSG(buff); } + else + { + MSG(""); + } return Qnil; }