Fix #108403: Console Word Selection Clipboard Copy Incorrect
Small correction to word selection in Console. Start and end of selection were in incorrect order so it displayed correctly but did not copy to clipboard as expected. Pull Request: https://projects.blender.org/blender/blender/pulls/108434
This commit is contained in:
committed by
Harley Acheson
parent
670da740ba
commit
8dc855e60a
@@ -1258,7 +1258,7 @@ static int console_selectword_invoke(bContext *C, wmOperator *UNUSED(op), const
|
||||
if (console_line_column_from_index(sc, pos, &cl, &offset, &n)) {
|
||||
int sel[2] = {n, n};
|
||||
|
||||
BLI_str_cursor_step_bounds_utf8(cl->line, cl->len, n, &sel[0], &sel[1]);
|
||||
BLI_str_cursor_step_bounds_utf8(cl->line, cl->len, n, &sel[1], &sel[0]);
|
||||
|
||||
sel[0] = offset - sel[0];
|
||||
sel[1] = offset - sel[1];
|
||||
|
||||
Reference in New Issue
Block a user