Skip to content

Commit

Permalink
Change history default to 99 from 100 so history printed with %02d lo…
Browse files Browse the repository at this point in the history
…oks good
  • Loading branch information
ldemailly committed Aug 10, 2024
1 parent 68dd89e commit aa00721
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion terminal.go
Original file line number Diff line number Diff line change
Expand Up @@ -980,7 +980,8 @@ func NewHistory(capacity int) *stRingBuffer {
}

// DefaultHistoryEntries is the default number of entries in the history.
const DefaultHistoryEntries = 100
// History index 1-99 prints using %02d.
const DefaultHistoryEntries = 99

func (s *stRingBuffer) Add(a string) {
if s.entries[s.head] == a {
Expand Down

0 comments on commit aa00721

Please sign in to comment.