From 9d82d824733b042765bc00b30c8fd6b3fd67564a Mon Sep 17 00:00:00 2001 From: Jonas Fonseca Date: Thu, 25 May 2006 00:41:53 +0200 Subject: [PATCH] Only pass on properies with non-zero length names --- tig.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tig.c b/tig.c index 4770e72..f931e1d 100644 --- a/tig.c +++ b/tig.c @@ -1621,8 +1621,8 @@ pager_enter(struct view *view, struct line *line) scroll_view(view, REQ_SCROLL_LINE_DOWN); /* FIXME: A minor workaround. Scrolling the view will call report("") - * but if we are scolling a non-current view this won't properly update - * the view title. */ + * but if we are scrolling a non-current view this won't properly + * update the view title. */ if (split) update_view_title(view); @@ -2426,7 +2426,8 @@ read_properties(const char *cmd, int separator, valuelen = 0; } - state = read_property(name, namelen, value, valuelen); + if (namelen) + state = read_property(name, namelen, value, valuelen); } if (state != ERR && ferror(pipe)) -- 2.11.0