aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/macros.h
diff options
context:
space:
mode:
authorbfredl <bjorn.linse@gmail.com>2022-09-06 20:38:26 +0200
committerGitHub <noreply@github.com>2022-09-06 20:38:26 +0200
commit74a8b5982a27cdccc6505343a9feeba1b3e74e31 (patch)
tree5e85d41e4115977863908fbcded226169b02ebd8 /src/nvim/macros.h
parent707edfc9e6a1745f268d1a9184183da521dc86b8 (diff)
parent73207cae611a1efb8cd17139e8228772daeb9866 (diff)
downloadrneovim-74a8b5982a27cdccc6505343a9feeba1b3e74e31.tar.gz
rneovim-74a8b5982a27cdccc6505343a9feeba1b3e74e31.tar.bz2
rneovim-74a8b5982a27cdccc6505343a9feeba1b3e74e31.zip
Merge pull request #20031 from dundargoc/refactor/char_u/8
refactor: replace char_u with char 8: remove `vim_strsave`
Diffstat (limited to 'src/nvim/macros.h')
-rw-r--r--src/nvim/macros.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/macros.h b/src/nvim/macros.h
index b84539852f..1024ca5015 100644
--- a/src/nvim/macros.h
+++ b/src/nvim/macros.h
@@ -54,7 +54,7 @@
#define ASCII_ISALNUM(c) (ASCII_ISALPHA(c) || ascii_isdigit(c))
// Returns empty string if it is NULL.
-#define EMPTY_IF_NULL(x) (char *)((x) ? (x) : (char_u *)"")
+#define EMPTY_IF_NULL(x) ((x) ? (x) : "")
/// Adjust chars in a language according to 'langmap' option.
/// NOTE that there is no noticeable overhead if 'langmap' is not set.