aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/arglist_defs.h
diff options
context:
space:
mode:
authorJosh Rahm <joshuarahm@gmail.com>2023-11-30 20:35:25 +0000
committerJosh Rahm <joshuarahm@gmail.com>2023-11-30 20:35:25 +0000
commit1b7b916b7631ddf73c38e3a0070d64e4636cb2f3 (patch)
treecd08258054db80bb9a11b1061bb091c70b76926a /src/nvim/arglist_defs.h
parenteaa89c11d0f8aefbb512de769c6c82f61a8baca3 (diff)
parent4a8bf24ac690004aedf5540fa440e788459e5e34 (diff)
downloadrneovim-aucmd_textputpost.tar.gz
rneovim-aucmd_textputpost.tar.bz2
rneovim-aucmd_textputpost.zip
Merge remote-tracking branch 'upstream/master' into aucmd_textputpostaucmd_textputpost
Diffstat (limited to 'src/nvim/arglist_defs.h')
-rw-r--r--src/nvim/arglist_defs.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/nvim/arglist_defs.h b/src/nvim/arglist_defs.h
new file mode 100644
index 0000000000..a79d540a6e
--- /dev/null
+++ b/src/nvim/arglist_defs.h
@@ -0,0 +1,19 @@
+#pragma once
+
+#include "nvim/garray_defs.h"
+
+/// Argument list: Array of file names.
+/// Used for the global argument list and the argument lists local to a window.
+typedef struct arglist {
+ garray_T al_ga; ///< growarray with the array of file names
+ int al_refcount; ///< number of windows using this arglist
+ int id; ///< id of this arglist
+} alist_T;
+
+/// For each argument remember the file name as it was given, and the buffer
+/// number that contains the expanded file name (required for when ":cd" is
+/// used).
+typedef struct argentry {
+ char *ae_fname; ///< file name as specified
+ int ae_fnum; ///< buffer number with expanded file name
+} aentry_T;