mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-08-09 00:16:57 -07:00
Fix up/down arrow regression and add test. (#18108)
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
This commit is contained in:
@@ -2905,12 +2905,12 @@ export function useTextBuffer({
|
||||
return true;
|
||||
}
|
||||
if (keyMatchers[Command.MOVE_UP](key)) {
|
||||
if (cursorRow === 0) return false;
|
||||
if (visualCursor[0] === 0) return false;
|
||||
move('up');
|
||||
return true;
|
||||
}
|
||||
if (keyMatchers[Command.MOVE_DOWN](key)) {
|
||||
if (cursorRow === lines.length - 1) return false;
|
||||
if (visualCursor[0] === visualLines.length - 1) return false;
|
||||
move('down');
|
||||
return true;
|
||||
}
|
||||
@@ -2990,6 +2990,8 @@ export function useTextBuffer({
|
||||
singleLine,
|
||||
setText,
|
||||
text,
|
||||
visualCursor,
|
||||
visualLines,
|
||||
],
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user