Mercurial > vim
diff src/macros.h @ 6909:676906c33768 v7.4.774
patch 7.4.774
Problem: When using the CompleteDone autocommand event it's difficult to
get to the completed items.
Solution: Add the v:completed_items variable. (Shougo Matsu)
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Fri, 10 Jul 2015 17:56:23 +0200 |
parents | 7b28dc1d756e |
children | 84d318257a45 |
line wrap: on
line diff
--- a/src/macros.h +++ b/src/macros.h @@ -118,6 +118,9 @@ # define ASCII_ISALNUM(c) (ASCII_ISALPHA(c) || VIM_ISDIGIT(c)) #endif +/* Returns empty string if it is NULL. */ +#define EMPTY_IF_NULL(x) ((x) ? (x) : (u_char *)"") + /* macro version of chartab(). * Only works with values 0-255! * Doesn't work for UTF-8 mode with chars >= 0x80. */