From 412d246be71bd99cb4edde4e6f984b0b0d91bcd9 Mon Sep 17 00:00:00 2001 From: Scott Prager Date: Sun, 3 May 2015 09:25:53 -0400 Subject: getenv: return NULL if empty #2574 Making an environment variable empty can be a way of unsetting it for platforms that don't support unsetenv(). In most cases, we treat empty variables as having been unset. For all others, use os_env_exists(). --- src/nvim/tui/tui.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/nvim/tui') diff --git a/src/nvim/tui/tui.c b/src/nvim/tui/tui.c index 1a8e4523b7..7df1c4f381 100644 --- a/src/nvim/tui/tui.c +++ b/src/nvim/tui/tui.c @@ -15,6 +15,7 @@ #include "nvim/api/private/helpers.h" #include "nvim/os/event.h" #include "nvim/tui/tui.h" +#include "nvim/strings.h" // Space reserved in the output buffer to restore the cursor to normal when // flushing. No existing terminal will require 32 bytes to do that. -- cgit