about summary refs log tree commit diff
path: root/edit.h
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2022-03-12 19:56:56 -0500
committerJune McEnroe <june@causal.agency>2022-03-12 19:56:56 -0500
commit2123804abef4cc95cf587327380abbfbcc9c6fe0 (patch)
tree227e7ab7b655c5b6b7283a00bd8c97223ed36c7c /edit.h
parentImplement r with count (diff)
downloadcatgirl-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.h7
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;
 };