aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/os
diff options
context:
space:
mode:
authorBjörn Linse <bjorn.linse@gmail.com>2020-10-19 20:05:54 +0200
committerBjörn Linse <bjorn.linse@gmail.com>2020-11-02 15:21:36 +0100
commitc60c7375f5754eea2a4209cc6441e70b2bb44f14 (patch)
tree930007daa8fbb65ad55acff0a8ecb49d8cb20b00 /src/nvim/os
parent6224ec3d4a672a9beb7522a34e61fa3b335bf070 (diff)
downloadrneovim-c60c7375f5754eea2a4209cc6441e70b2bb44f14.tar.gz
rneovim-c60c7375f5754eea2a4209cc6441e70b2bb44f14.tar.bz2
rneovim-c60c7375f5754eea2a4209cc6441e70b2bb44f14.zip
startup: handle autoload and lua packages during startup
¡NO HAY BANDA!
Diffstat (limited to 'src/nvim/os')
-rw-r--r--src/nvim/os/os_defs.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/nvim/os/os_defs.h b/src/nvim/os/os_defs.h
index c8ac4218f6..bd5f2b889d 100644
--- a/src/nvim/os/os_defs.h
+++ b/src/nvim/os/os_defs.h
@@ -16,10 +16,11 @@
#define BASENAMELEN (NAME_MAX - 5)
// Use the system path length if it makes sense.
-#if defined(PATH_MAX) && (PATH_MAX > 1024)
+# define DEFAULT_MAXPATHL 4096
+#if defined(PATH_MAX) && (PATH_MAX > DEFAULT_MAXPATHL)
# define MAXPATHL PATH_MAX
#else
-# define MAXPATHL 1024
+# define MAXPATHL DEFAULT_MAXPATHL
#endif
// Command-processing buffer. Use large buffers for all platforms.