Mode type typo fixed
This commit is contained in:
parent
c224d0e18b
commit
515a25cee0
1 changed files with 3 additions and 5 deletions
8
main.cpp
8
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<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) {
|
||||
|
|
Loading…
Reference in a new issue