From 7a4aa60d4ed99fc13ebdfee7fc1898eea978a428 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Fri, 22 Sep 2023 14:40:44 +1000 Subject: [PATCH] Fix word selection in the console failing past line end Selecting a word when the cursor was past the line end wasn't working. --- source/blender/editors/space_console/console_ops.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } }