From 515a25cee05999decf8393954c41112c26ca6ebc Mon Sep 17 00:00:00 2001 From: Matuush Date: Thu, 13 Mar 2025 17:06:41 +0100 Subject: [PATCH] Mode type typo fixed --- main.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/main.cpp b/main.cpp index 772f2fd..9fa76e2 100644 --- a/main.cpp +++ b/main.cpp @@ -8,15 +8,13 @@ using std::string; using std::vector; #define adds(s) addstr(s.c_str()) +enum mode_type { insert, normal }; + // Global variables vector file(0); int row = 0, col = 0; -enum mode_ty { - insert, normal -}; - // Load file to buffer bool load(string filename) { std::ifstream infile(filename); @@ -106,7 +104,7 @@ int main(int argc, char* argv[]) { print_file(); - mode_ty mode = normal; + mode_type mode = normal; // Main loop while(true) {