diff options
author | dundargoc <gocdundar@gmail.com> | 2023-12-31 01:54:34 +0100 |
---|---|---|
committer | dundargoc <33953936+dundargoc@users.noreply.github.com> | 2024-01-02 21:59:12 +0100 |
commit | 735aa4c4c89943b26f1d6ba0d3e076002490c09d (patch) | |
tree | a96add0d8cfc4d4b86b87786d6c3f45a2f3db9ec /src/nvim/buffer_defs.h | |
parent | 3f35c69b23d1bc951f158e4e3d8e554f89bd1037 (diff) | |
download | rneovim-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/buffer_defs.h')
-rw-r--r-- | src/nvim/buffer_defs.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/buffer_defs.h b/src/nvim/buffer_defs.h index afe77b84f5..c6bd5691b1 100644 --- a/src/nvim/buffer_defs.h +++ b/src/nvim/buffer_defs.h @@ -88,7 +88,7 @@ typedef struct frame_S frame_T; typedef uint64_t disptick_T; // display tick type // The taggy struct is used to store the information about a :tag command. -typedef struct taggy { +typedef struct { char *tagname; // tag name fmark_T fmark; // cursor position BEFORE ":tag" int cur_match; // match number @@ -808,7 +808,7 @@ struct tabpage_S { // may not reflect what is actually in the buffer. When wl_valid is false, // the entries can only be used to count the number of displayed lines used. // wl_lnum and wl_lastlnum are invalid too. -typedef struct w_line { +typedef struct { linenr_T wl_lnum; // buffer line number for logical line uint16_t wl_size; // height in screen lines char wl_valid; // true values are valid for text in buffer |