Mode type typo fixed

This commit is contained in:
Matúš Púll 2025-03-13 17:06:41 +01:00
parent c224d0e18b
commit 515a25cee0

View file

@ -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<string> 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) {