Website Summary Files Commits Branches @commit @diff @stats
path: root / src / UserInterface / UserInterface.cpp
diff options
context:
space:
mode:
1 files changed, 2 insertions, 2 deletions
-rw-r--r--src/UserInterface/UserInterface.cpp4
diff --git a/src/UserInterface/UserInterface.cpp b/src/UserInterface/UserInterface.cpp
index 315b7e4..99b1d2f 100644
--- a/src/UserInterface/UserInterface.cpp
+++ b/src/UserInterface/UserInterface.cpp
@@ -91,7 +91,7 @@ void UserInterface::com_edit(const char* params) {
return;
}
- unsigned row = atoi(++params);
+ unsigned row = atoi(++params) - 1;
while (*params != 'C') {
if (*params == '\0') {
printLine("Error: End of line reached. Expected row number.");
@@ -104,7 +104,7 @@ void UserInterface::com_edit(const char* params) {
params++;
}
- unsigned col = atoi(++params);
+ unsigned col = atoi(++params) - 1;
while (*params != ' ') {
if (*params == '\0') {
printLine("Error: End of line reached. Expected columns number.");