<div dir="ltr"><div>libmisc/shell: User can't cut using ctrl e and x in medit<br>
<br>
Closes #4557</div><div>---</div> cpukit/libmisc/shell/main_edit.c | 3 +--<br> 1 file changed, 1 insertion(+), 2 deletions(-)<br><br>diff --git a/cpukit/libmisc/shell/main_edit.c b/cpukit/libmisc/shell/main_edit.c<br>index 6e954639e2..8317452b7b 100644<br>--- a/cpukit/libmisc/shell/main_edit.c<br>+++ b/cpukit/libmisc/shell/main_edit.c<br>@@ -1713,7 +1713,6 @@ static void copy_selection(struct editor *ed) {<br> ed->env->clipboard = (unsigned char *) realloc(ed->env->clipboard, ed->env->clipsize);<br> if (!ed->env->clipboard) return;<br> copy(ed, ed->env->clipboard, selstart, ed->env->clipsize);<br>- select_toggle(ed);<br> }<br> <br> static void cut_selection(struct editor *ed) {<br>@@ -2132,7 +2131,7 @@ static void edit(struct editor *ed) {<br> <br> case ctrl('e'): select_toggle(ed); break;<br> case ctrl('a'): select_all(ed); break;<br>- case ctrl('c'): copy_selection(ed); break;<br>+ case ctrl('c'): copy_selection(ed);select_toggle(ed); break;<br> case ctrl('f'): find_text(ed, 0); break;<br> case ctrl('l'): goto_line(ed); break;<br> case ctrl('g'): find_text(ed, 1); break;<font style="--darkreader-inline-color: #9d9488;" color="#888888"><br>-- <br>2.39.1</font></div>