mirror of
https://github.com/tiny-craft/tiny-rdm.git
synced 2025-04-22 13:28:05 +08:00
perf: move cursor to last when switch to history by arrow up or down #77
This commit is contained in:
parent
30d6da85a1
commit
4ffbdbd39a
@ -203,7 +203,7 @@ const moveInputCursor = (step) => {
|
||||
} else {
|
||||
// update cursor position only
|
||||
const currentLine = getCurrentInput()
|
||||
inputCursor = Math.min(Math.max(0, inputCursor), currentLine.length)
|
||||
inputCursor = Math.max(0, currentLine.length)
|
||||
updateCursor = true
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user