diff options
author | June McEnroe <june@causal.agency> | 2022-03-12 19:56:56 -0500 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2022-03-12 19:56:56 -0500 |
commit | 2123804abef4cc95cf587327380abbfbcc9c6fe0 (patch) | |
tree | 227e7ab7b655c5b6b7283a00bd8c97223ed36c7c /edit.h | |
parent | Implement r with count (diff) | |
download | catgirl-2123804abef4cc95cf587327380abbfbcc9c6fe0.tar.gz catgirl-2123804abef4cc95cf587327380abbfbcc9c6fe0.zip |
Use a bool for vi.mode
enums use 4 bytes even if they only have 2 values and we have 256 of these structs...
Diffstat (limited to '')
-rw-r--r-- | edit.h | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/edit.h b/edit.h index 18e9cd2..d94a028 100644 --- a/edit.h +++ b/edit.h @@ -35,13 +35,10 @@ struct Edit { size_t cap; struct Edit *cut; struct { - enum EditViMode { - EditViInsert, - EditViCommand, - } mode; - unsigned count; + bool mode; char verb; bool lnext; + unsigned count; } vi; }; |