summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/libw32c.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/libw32c.cc')
-rw-r--r--crawl-ref/source/libw32c.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/libw32c.cc b/crawl-ref/source/libw32c.cc
index 7d670e25e1..c7d22928a0 100644
--- a/crawl-ref/source/libw32c.cc
+++ b/crawl-ref/source/libw32c.cc
@@ -175,7 +175,7 @@ void writeChar(char c)
// update x position
cx += 1;
- if (cx >= screensize.X) cx = screensize.X;
+ if (cx >= screensize.X) cx = screensize.X - 1;
}
void enable_smart_cursor(bool cursor)