diff options
author | Bram Moolenaar <Bram@vim.org> | 2015-07-10 17:56:23 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2015-07-10 17:56:23 +0200 |
commit | 42a4512f62322fcc12c0071037161d2079d98ba5 (patch) | |
tree | 01c45b917ad125f14eb981148a9828a453b85253 /src/macros.h | |
parent | ae94b7718ab5ecc820ce487c9ea0178c04a9853c (diff) | |
download | vim-git-42a4512f62322fcc12c0071037161d2079d98ba5.tar.gz |
patch 7.4.774v7.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)
Diffstat (limited to 'src/macros.h')
-rw-r--r-- | src/macros.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/macros.h b/src/macros.h index 01207d91b..773cffdf7 100644 --- 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. */ |