mirror of
https://github.com/neovim/neovim.git
synced 2025-10-07 02:16:31 +00:00
refactor: remove redundant struct names
A struct can be anonymous if only its typedef is used.
This commit is contained in:
@@ -16,7 +16,7 @@ typedef enum {
|
||||
} MotionType;
|
||||
|
||||
/// Arguments for operators.
|
||||
typedef struct oparg_S {
|
||||
typedef struct {
|
||||
int op_type; ///< current pending operator type
|
||||
int regname; ///< register to use for the operator
|
||||
MotionType motion_type; ///< type of the current cursor motion
|
||||
@@ -42,7 +42,7 @@ typedef struct oparg_S {
|
||||
} oparg_T;
|
||||
|
||||
/// Arguments for Normal mode commands.
|
||||
typedef struct cmdarg_S {
|
||||
typedef struct {
|
||||
oparg_T *oap; ///< Operator arguments
|
||||
int prechar; ///< prefix character (optional, always 'g')
|
||||
int cmdchar; ///< command character
|
||||
|
Reference in New Issue
Block a user