Fix word selection in the console failing past line end

Selecting a word when the cursor was past the line end wasn't working.
This commit is contained in:
Campbell Barton
2023-09-22 14:40:44 +10:00
parent 25179efb51
commit 7a4aa60d4e

View File

@@ -362,7 +362,7 @@ static bool console_line_column_from_index(
for (cl = static_cast<ConsoleLine *>(sc->scrollback.last); cl; cl = cl->prev) {
offset += cl->len + 1;
if (offset >= pos) {
if (offset > pos) {
break;
}
}