diff --git a/source/blender/editors/space_console/console_ops.cc b/source/blender/editors/space_console/console_ops.cc index 6822dc4faa7..e47fe423201 100644 --- a/source/blender/editors/space_console/console_ops.cc +++ b/source/blender/editors/space_console/console_ops.cc @@ -362,7 +362,7 @@ static bool console_line_column_from_index( for (cl = static_cast(sc->scrollback.last); cl; cl = cl->prev) { offset += cl->len + 1; - if (offset >= pos) { + if (offset > pos) { break; } }