Rename previous-history to prev-history

previous-history is still supported for backward compatibility
This commit is contained in:
Junegunn Choi
2022-12-10 22:42:56 +09:00
parent 7812c64a31
commit 0ad30063ff
4 changed files with 9 additions and 9 deletions

View File

@@ -315,7 +315,7 @@ const (
actPreviewPageDown
actPreviewHalfPageUp
actPreviewHalfPageDown
actPreviousHistory
actPrevHistory
actNextHistory
actExecute
actExecuteSilent
@@ -2859,7 +2859,7 @@ func (t *Terminal) Loop() {
prefix := copySlice(t.input[:t.cx])
t.input = append(append(prefix, event.Char), t.input[t.cx:]...)
t.cx++
case actPreviousHistory:
case actPrevHistory:
if t.history != nil {
t.history.override(string(t.input))
t.input = trimQuery(t.history.previous())