[rtems commit] libmisc/shell/main_edit.c: User cannot cut using ctrl e and x
Gedare Bloom
gedare at rtems.org
Wed Feb 15 21:21:45 UTC 2023
Thanks for handling this Joel. Looks like the author attribution
didn't go through quite right.
On Wed, Feb 15, 2023 at 2:17 PM Joel Sherrill <joel at rtems.org> wrote:
>
> Module: rtems
> Branch: master
> Commit: 809e34e52777d3ba17e66cea7796fff71c3372cb
> Changeset: http://git.rtems.org/rtems/commit/?id=809e34e52777d3ba17e66cea7796fff71c3372cb
>
> Author: zack <zack>
> Date: Thu Feb 9 21:25:32 2023 -0500
>
> libmisc/shell/main_edit.c: User cannot cut using ctrl e and x
>
> Closes #4557
>
> ---
>
> cpukit/libmisc/shell/main_edit.c | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)
>
> diff --git a/cpukit/libmisc/shell/main_edit.c b/cpukit/libmisc/shell/main_edit.c
> index 6e954639e2..8317452b7b 100644
> --- a/cpukit/libmisc/shell/main_edit.c
> +++ b/cpukit/libmisc/shell/main_edit.c
> @@ -1713,7 +1713,6 @@ static void copy_selection(struct editor *ed) {
> ed->env->clipboard = (unsigned char *) realloc(ed->env->clipboard, ed->env->clipsize);
> if (!ed->env->clipboard) return;
> copy(ed, ed->env->clipboard, selstart, ed->env->clipsize);
> - select_toggle(ed);
> }
>
> static void cut_selection(struct editor *ed) {
> @@ -2132,7 +2131,7 @@ static void edit(struct editor *ed) {
>
> case ctrl('e'): select_toggle(ed); break;
> case ctrl('a'): select_all(ed); break;
> - case ctrl('c'): copy_selection(ed); break;
> + case ctrl('c'): copy_selection(ed);select_toggle(ed); break;
> case ctrl('f'): find_text(ed, 0); break;
> case ctrl('l'): goto_line(ed); break;
> case ctrl('g'): find_text(ed, 1); break;
>
> _______________________________________________
> vc mailing list
> vc at rtems.org
> http://lists.rtems.org/mailman/listinfo/vc
More information about the devel
mailing list