peterh / liner

Pure Go line editor with history, inspired by linenoise
MIT License
1.05k stars 132 forks source link

Added a field and func to change the history limit. #122

Closed Urethramancer closed 5 years ago

Urethramancer commented 5 years ago

I found that I needed fewer lines in the history for some projects, so I made it possible to change the limit. I think others might find use for it (even going beyond 1000, if they're weird). The constant is only used when creating the State struct, then an internal int is used referenced wherever the HistoryLimit constant used to be.

peterh commented 5 years ago

Fails "go test".