aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/quickfix.c
diff options
context:
space:
mode:
authordundargoc <gocdundar@gmail.com>2023-12-31 01:54:34 +0100
committerdundargoc <33953936+dundargoc@users.noreply.github.com>2024-01-02 21:59:12 +0100
commit735aa4c4c89943b26f1d6ba0d3e076002490c09d (patch)
treea96add0d8cfc4d4b86b87786d6c3f45a2f3db9ec /src/nvim/quickfix.c
parent3f35c69b23d1bc951f158e4e3d8e554f89bd1037 (diff)
downloadrneovim-735aa4c4c89943b26f1d6ba0d3e076002490c09d.tar.gz
rneovim-735aa4c4c89943b26f1d6ba0d3e076002490c09d.tar.bz2
rneovim-735aa4c4c89943b26f1d6ba0d3e076002490c09d.zip
refactor: remove redundant struct names
A struct can be anonymous if only its typedef is used.
Diffstat (limited to 'src/nvim/quickfix.c')
-rw-r--r--src/nvim/quickfix.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/quickfix.c b/src/nvim/quickfix.c
index 9d78a570bb..3683679daa 100644
--- a/src/nvim/quickfix.c
+++ b/src/nvim/quickfix.c
@@ -107,7 +107,7 @@ typedef enum {
/// Usually the list contains one or more entries. But an empty list can be
/// created using setqflist()/setloclist() with a title and/or user context
/// information and entries can be added later using setqflist()/setloclist().
-typedef struct qf_list_S {
+typedef struct {
unsigned qf_id; ///< Unique identifier for this list
qfltype_T qfl_type;
qfline_T *qf_start; ///< pointer to the first error
@@ -232,7 +232,7 @@ typedef struct {
} qffields_T;
/// :vimgrep command arguments
-typedef struct vgr_args_S {
+typedef struct {
int tomatch; ///< maximum number of matches to find
char *spat; ///< search pattern
int flags; ///< search modifier