aboutsummaryrefslogtreecommitdiff
path: root/src/engine/user/cursor.cpp
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2022-06-07 14:49:51 +0200
committerHampusM <hampus@hampusmat.com>2022-06-13 17:57:01 +0200
commitf778317bae709f397345a2d5e04e23864c6391b3 (patch)
tree9936789cd1d6b76ce7d41d6867e6887c18f28c14 /src/engine/user/cursor.cpp
parent9629a8d61e43ba15e87834801f581778625b7a14 (diff)
fix: index cursor x position from 0
Diffstat (limited to 'src/engine/user/cursor.cpp')
-rw-r--r--src/engine/user/cursor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/engine/user/cursor.cpp b/src/engine/user/cursor.cpp
index 70828c3..d348d9e 100644
--- a/src/engine/user/cursor.cpp
+++ b/src/engine/user/cursor.cpp
@@ -31,7 +31,7 @@ void CursorController::move_to(const Vector2 &position) noexcept
MOVE_CURSOR_TO,
fmt::arg("esc", ESC),
fmt::arg("row", inverted_pos.get_y()),
- fmt::arg("column", inverted_pos.get_x()));
+ fmt::arg("column", inverted_pos.get_x() + 1));
std::cout.flush();
_position = position;