Skip to content

Commit 65b441c

Browse files
committed
Change ctrl-a/ctrl-e to move to start/end of line, not buffer
1 parent 631b11e commit 65b441c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/shell/linenoise/linenoise.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1382,10 +1382,10 @@ int Linenoise::Edit() {
13821382
RefreshLine();
13831383
break;
13841384
case CTRL_A: /* Ctrl+a, go to the start of the line */
1385-
EditMoveHome();
1385+
EditMoveStartOfLine();
13861386
break;
13871387
case CTRL_E: /* ctrl+e, go to the end of the line */
1388-
EditMoveEnd();
1388+
EditMoveEndOfLine();
13891389
break;
13901390
case CTRL_L: /* ctrl+l, clear screen */
13911391
linenoiseClearScreen();

0 commit comments

Comments
 (0)