Add basic history operations

This commit is contained in:
Kovid Goyal
2022-11-04 20:13:10 +05:30
parent f77d07259a
commit e1ab2383b3
5 changed files with 136 additions and 13 deletions

View File

@@ -56,6 +56,8 @@ const (
ActionHistoryNextOrCursorDown
ActionHistoryNext
ActionHistoryPrevious
ActionHistoryFirst
ActionHistoryLast
ActionClearScreen
ActionAddText
@@ -132,6 +134,7 @@ type Readline struct {
}
bracketed_paste_buffer strings.Builder
last_action Action
history_matches *HistoryMatches
}
func New(loop *loop.Loop, r RlInit) *Readline {