ajwillia-ms pushed a commit to branch master. http://git.enlightenment.org/core/efl.git/commit/?id=2c0b850f5727b0dce5fdc80cd6394adb242cd93f
commit 2c0b850f5727b0dce5fdc80cd6394adb242cd93f Author: Andy Williams <[email protected]> Date: Tue Mar 21 22:36:53 2017 +0000 elm_code: fix keyboard selection forward @fix --- src/lib/elementary/elm_code_widget.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/lib/elementary/elm_code_widget.c b/src/lib/elementary/elm_code_widget.c index 8db374c..f5cb422 100644 --- a/src/lib/elementary/elm_code_widget.c +++ b/src/lib/elementary/elm_code_widget.c @@ -1654,6 +1654,17 @@ _elm_code_widget_key_down_cb(void *data, Evas *evas EINA_UNUSED, if (!pd->selection) elm_code_widget_selection_start(widget, pd->cursor_line, pd->cursor_col - (backwards?1:0)); + + if (pd->selection->start_line == pd->selection->end_line) + { + if ((pd->selection->end_col == pd->selection->start_col && !backwards) || + (pd->selection->end_col > pd->selection->start_col)) + elm_code_widget_cursor_position_set(widget, pd->selection->end_line, pd->selection->end_col+1); + } + else if (pd->selection->end_line > pd->selection->start_line) + { + elm_code_widget_cursor_position_set(widget, pd->selection->end_line, pd->selection->end_col+1); + } } else elm_code_widget_selection_clear(widget); --
