updated for version 7.2-152
diff --git a/src/message.c b/src/message.c
index ffa45a1..6e00c1a 100644
--- a/src/message.c
+++ b/src/message.c
@@ -3023,11 +3023,7 @@
if (*p_vfile != NUL)
verbose_write(s, maxlen);
- if (redir_fd != NULL
-#ifdef FEAT_EVAL
- || redir_reg || redir_vname
-#endif
- )
+ if (redirecting())
{
/* If the string doesn't start with CR or NL, go to msg_col */
if (*s != '\n' && *s != '\r')
@@ -3074,6 +3070,16 @@
}
}
+ int
+redirecting()
+{
+ return redir_fd != NULL
+#ifdef FEAT_EVAL
+ || redir_reg || redir_vname
+#endif
+ ;
+}
+
/*
* Before giving verbose message.
* Must always be called paired with verbose_leave()!