mirror of https://gitee.com/bigwinds/arangodb
Moving to begining of line respectively end of line is fixed
This commit is contained in:
parent
f6f8281f7e
commit
22545acbf6
|
@ -1874,11 +1874,13 @@ history_navigation:
|
||||||
break;
|
break;
|
||||||
case ctrl('A'): /* Ctrl+a, go to the start of the line */
|
case ctrl('A'): /* Ctrl+a, go to the start of the line */
|
||||||
case SPECIAL_HOME:
|
case SPECIAL_HOME:
|
||||||
|
eraseEol(current);
|
||||||
current->pos = 0;
|
current->pos = 0;
|
||||||
refreshLine(current->prompt, current);
|
refreshLine(current->prompt, current);
|
||||||
break;
|
break;
|
||||||
case ctrl('E'): /* ctrl+e, go to the end of the line */
|
case ctrl('E'): /* ctrl+e, go to the end of the line */
|
||||||
case SPECIAL_END:
|
case SPECIAL_END:
|
||||||
|
eraseEol(current);
|
||||||
current->pos = current->chars;
|
current->pos = current->chars;
|
||||||
refreshLine(current->prompt, current);
|
refreshLine(current->prompt, current);
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue