Mercurial > vim
comparison src/message.c @ 1854:a58806285f20 v7.2.152
updated for version 7.2-152
author | vimboss |
---|---|
date | Wed, 22 Apr 2009 12:44:48 +0000 |
parents | b54d2f702d41 |
children | c8f343a465a2 |
comparison
equal
deleted
inserted
replaced
1853:96445585f1d9 | 1854:a58806285f20 |
---|---|
3021 * Must come before the rest because of updating "msg_col". | 3021 * Must come before the rest because of updating "msg_col". |
3022 */ | 3022 */ |
3023 if (*p_vfile != NUL) | 3023 if (*p_vfile != NUL) |
3024 verbose_write(s, maxlen); | 3024 verbose_write(s, maxlen); |
3025 | 3025 |
3026 if (redir_fd != NULL | 3026 if (redirecting()) |
3027 #ifdef FEAT_EVAL | |
3028 || redir_reg || redir_vname | |
3029 #endif | |
3030 ) | |
3031 { | 3027 { |
3032 /* If the string doesn't start with CR or NL, go to msg_col */ | 3028 /* If the string doesn't start with CR or NL, go to msg_col */ |
3033 if (*s != '\n' && *s != '\r') | 3029 if (*s != '\n' && *s != '\r') |
3034 { | 3030 { |
3035 while (cur_col < msg_col) | 3031 while (cur_col < msg_col) |
3070 } | 3066 } |
3071 | 3067 |
3072 if (msg_silent != 0) /* should update msg_col */ | 3068 if (msg_silent != 0) /* should update msg_col */ |
3073 msg_col = cur_col; | 3069 msg_col = cur_col; |
3074 } | 3070 } |
3071 } | |
3072 | |
3073 int | |
3074 redirecting() | |
3075 { | |
3076 return redir_fd != NULL | |
3077 #ifdef FEAT_EVAL | |
3078 || redir_reg || redir_vname | |
3079 #endif | |
3080 ; | |
3075 } | 3081 } |
3076 | 3082 |
3077 /* | 3083 /* |
3078 * Before giving verbose message. | 3084 * Before giving verbose message. |
3079 * Must always be called paired with verbose_leave()! | 3085 * Must always be called paired with verbose_leave()! |