fix: Ctrl+E should move to current line end, not buffer end (#6729)

Co-authored-by: Jacob Richman <jacob314@gmail.com>
Co-authored-by: Arya Gummadi <aryagummadi@google.com>
This commit is contained in:
mkusaka
2025-08-22 13:39:58 +09:00
committed by GitHub
parent 348fa6c7c2
commit 51f642f0a9
2 changed files with 40 additions and 3 deletions

View File

@@ -482,7 +482,6 @@ export const InputPrompt: React.FC<InputPromptProps> = ({
}
if (keyMatchers[Command.END](key)) {
buffer.move('end');
buffer.moveToOffset(cpLen(buffer.text));
return;
}
// Ctrl+C (Clear input)