aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/arglist_defs.h
blob: a79d540a6e5f86e85a6a30da5ea22437e4901100 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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;