Files
crib-old/src/editor/commands.cc
T
2026-07-01 18:53:49 +01:00

14 lines
249 B
C++

#include "editor/editor.h"
#include "main.h"
void Editor::handle_command(std::string &command) {
if (command == "w") {
this->save();
}
if (command == "wq") {
this->save();
command = "q";
ui::bar.handle_command(command);
}
}