summaryrefslogtreecommitdiffstats
path: root/gui
diff options
context:
space:
mode:
Diffstat (limited to 'gui')
-rw-r--r--gui/console.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/gui/console.cpp b/gui/console.cpp
index 51ad21e59..f0d76c646 100644
--- a/gui/console.cpp
+++ b/gui/console.cpp
@@ -229,7 +229,7 @@ int GUIConsole::RenderConsole(void)
line_char_width = gr_maxExW(curr_line.c_str(), fontResource, mConsoleW);
if (line_char_width < curr_line.size()) {
rConsole.push_back(curr_line.substr(0, line_char_width));
- curr_line = curr_line.substr(line_char_width, curr_line.size() - line_char_width - 1);
+ curr_line = curr_line.substr(line_char_width, curr_line.size() - line_char_width);
} else {
rConsole.push_back(curr_line);
break;